mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2024-12-22 14:26:11 +00:00
remove release job
This commit is contained in:
parent
4f9ab69b37
commit
7b9e7b773b
43
.github/workflows/build-openwrt.yml
vendored
43
.github/workflows/build-openwrt.yml
vendored
@ -1,9 +1,7 @@
|
||||
name: build-openwrt
|
||||
|
||||
on:
|
||||
push:
|
||||
# tags:
|
||||
# - 'v*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -52,9 +50,6 @@ jobs:
|
||||
- name: Build packages
|
||||
id: build
|
||||
working-directory: /builder
|
||||
env:
|
||||
ARCH: ${{ matrix.arch }}
|
||||
BRANCH: ${{ matrix.branch }}
|
||||
shell: bash
|
||||
run: |
|
||||
cp -va $GITHUB_WORKSPACE/youtubeUnblock package
|
||||
@ -62,8 +57,6 @@ jobs:
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
sed -e 's|base.*\.git|base https://github.com/openwrt/openwrt.git|' \
|
||||
-e 's|packages.*\.git|packages https://github.com/openwrt/packages.git|' -i feeds.conf.default
|
||||
./scripts/feeds update base packages
|
||||
./scripts/feeds install -a
|
||||
make defconfig
|
||||
make package/youtubeUnblock/compile V=s -j$(nproc) BUILD_LOG=1
|
||||
|
||||
@ -71,15 +64,14 @@ jobs:
|
||||
if: always()
|
||||
env:
|
||||
ARCH: ${{ matrix.arch }}
|
||||
BRANCH: ${{ matrix.branch }}
|
||||
run: |
|
||||
tar -cJvf logs-$BRANCH-$ARCH.tar.xz /builder/logs
|
||||
tar -cJvf logs-$ARCH.tar.xz /builder/logs
|
||||
|
||||
- name: Upload packages
|
||||
if: steps.build.outcome == 'success'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ipk-${{ matrix.branch }}-${{ matrix.arch }}
|
||||
name: ipk-${{ matrix.arch }}
|
||||
path: /builder/**/youtubeUnblock*.ipk
|
||||
if-no-files-found: error
|
||||
|
||||
@ -87,30 +79,5 @@ jobs:
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: logs-${{ matrix.branch }}-${{ matrix.arch }}
|
||||
path: ./**/logs-${{ matrix.branch }}-${{ matrix.arch }}.tar.xz
|
||||
|
||||
release:
|
||||
needs: build
|
||||
permissions:
|
||||
contents: write
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
branch: ['23.05']
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: ipk-*
|
||||
|
||||
- name: Upload release assets
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
allowUpdates: true
|
||||
prerelease: false
|
||||
tag: v${{ needs.build.outputs.version }}-owrt${{ matrix.branch }}
|
||||
name: v${{ needs.build.outputs.version }} for OpenWrt ${{ matrix.branch }}
|
||||
body: |
|
||||
youtubeUnblock v${{ needs.build.outputs.version }} for OpenWrt ${{ matrix.branch }}
|
||||
artifacts: ./**/*.ipk
|
||||
name: logs-${{ matrix.arch }}
|
||||
path: ./**/logs-*.tar.xz
|
||||
|
Loading…
Reference in New Issue
Block a user