From: Mauro Carvalho Chehab Date: Sun, 22 Jan 2023 06:23:22 +0000 (+0100) Subject: on_tag.yml: use a different approach to upload artifact X-Git-Tag: v0.7.0 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c7cf86caa0804fa5342646174a623484c10bb6f7;p=users%2Fmchehab%2Frasdaemon.git on_tag.yml: use a different approach to upload artifact Use my own upload release asset logic, as it is known to work already on ZBar. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/.github/workflows/on_tag.yml b/.github/workflows/on_tag.yml index 6cc33eb..da42b19 100644 --- a/.github/workflows/on_tag.yml +++ b/.github/workflows/on_tag.yml @@ -18,6 +18,7 @@ jobs: - name: Release changelog run: | .github/workflows/gen_release.pl body_file.tmp > version + echo "version=$(cat version)" >> $GITHUB_ENV - name: Create Release id: create_release uses: actions/create-release@v1 @@ -29,16 +30,17 @@ jobs: body_path: body_file.tmp draft: false prerelease: true - - name: Create Source Package + - name: Create Source Package for version ${{ env.version }} run: | autoreconf -vfi ./configure --enable-all make dist-bzip2 - mkdir artifacts - mv rasdaemon-$(cat version).tar.bz2 artifacts - - name: Archive package - uses: actions/upload-artifact@v1 + - name: upload + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: mchehab/upload-release-asset@v1.0.3 with: - name: rasdaemon-source-package - path: artifacts/ - + upload_url: ${{ github.event.release.upload_url }} + asset_path: rasdaemon-${{ env.version }}.tar.bz2 + asset_name: rasdaemon-${{ env.version }}.tar.bz2 + asset_content_type: application/bzip2