Skip to content

Commit

Permalink
on_tag.yml: use a different approach to upload artifact
Browse files Browse the repository at this point in the history
Use my own upload release asset logic, as it is known to work
already on ZBar.

Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mchehab committed Jan 22, 2023
1 parent 46f6e49 commit c7cf86c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit c7cf86c

Please sign in to comment.