remove release job

This commit is contained in:
spvkgn 2024-08-09 20:22:20 +05:00
parent 4f9ab69b37
commit 7b9e7b773b

View File

@ -1,9 +1,7 @@
name: build-openwrt name: build-openwrt
on: on:
push: workflow_dispatch:
# tags:
# - 'v*'
jobs: jobs:
build: build:
@ -52,9 +50,6 @@ jobs:
- name: Build packages - name: Build packages
id: build id: build
working-directory: /builder working-directory: /builder
env:
ARCH: ${{ matrix.arch }}
BRANCH: ${{ matrix.branch }}
shell: bash shell: bash
run: | run: |
cp -va $GITHUB_WORKSPACE/youtubeUnblock package cp -va $GITHUB_WORKSPACE/youtubeUnblock package
@ -62,8 +57,6 @@ jobs:
echo "version=$VERSION" >> $GITHUB_OUTPUT echo "version=$VERSION" >> $GITHUB_OUTPUT
sed -e 's|base.*\.git|base https://github.com/openwrt/openwrt.git|' \ 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 -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 defconfig
make package/youtubeUnblock/compile V=s -j$(nproc) BUILD_LOG=1 make package/youtubeUnblock/compile V=s -j$(nproc) BUILD_LOG=1
@ -71,15 +64,14 @@ jobs:
if: always() if: always()
env: env:
ARCH: ${{ matrix.arch }} ARCH: ${{ matrix.arch }}
BRANCH: ${{ matrix.branch }}
run: | run: |
tar -cJvf logs-$BRANCH-$ARCH.tar.xz /builder/logs tar -cJvf logs-$ARCH.tar.xz /builder/logs
- name: Upload packages - name: Upload packages
if: steps.build.outcome == 'success' if: steps.build.outcome == 'success'
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ipk-${{ matrix.branch }}-${{ matrix.arch }} name: ipk-${{ matrix.arch }}
path: /builder/**/youtubeUnblock*.ipk path: /builder/**/youtubeUnblock*.ipk
if-no-files-found: error if-no-files-found: error
@ -87,30 +79,5 @@ jobs:
if: always() if: always()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: logs-${{ matrix.branch }}-${{ matrix.arch }} name: logs-${{ matrix.arch }}
path: ./**/logs-${{ matrix.branch }}-${{ matrix.arch }}.tar.xz path: ./**/logs-*.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