upload only for releases

This commit is contained in:
Vladimir Avtsenov 2025-02-15 01:18:45 +03:00
parent c7dac46d67
commit e8d53872b0

View File

@ -1,9 +1,6 @@
name: Build and Package OPKG name: Build and Package OPKG
on: on:
push:
branches-ignore:
- 'refs/tags/*'
release: release:
types: [published] types: [published]
@ -58,16 +55,7 @@ jobs:
run: | run: |
ARCH=${{ matrix.arch }} GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} GOMIPS=${{ matrix.gomips }} GOARM=${{ matrix.goarm }} make ARCH=${{ matrix.arch }} GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} GOMIPS=${{ matrix.gomips }} GOARM=${{ matrix.goarm }} make
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: magitrickle_${{ matrix.arch }}
path: .build/magitrickle_*_${{ matrix.arch }}.ipk
if-no-files-found: error
compression-level: 0
- name: Upload asset to release - name: Upload asset to release
if: ${{ github.event_name == 'release' }}
uses: https://gitea.com/actions/release-action@main uses: https://gitea.com/actions/release-action@main
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}