Skip to content

Release

Release #4

Workflow file for this run

name: Release
"on":
release:
types: [published]
jobs:
attach-release-archive:
runs-on: ubuntu-latest
steps:
- run: env | sort
- run: >
wget https://github.com/lalten/rules_appimage/archive/refs/tags/${{ github.ref_name }}.tar.gz
-O rules_appimage-${{ github.ref_name }}.tar.gz
- run: |
set -x
REL_SHA="$(sha256sum rules_appimage-${{ github.ref_name }}.tar.gz | cut -d' ' -f1)"
REL_BODY="$(sed "s/\$REL_SHA/$REL_SHA/" <<<'${{ github.event.release.body }}'")
echo "REL_BODY=$REL_BODY" >> $GITHUB_ENV
- uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: rules_appimage-${{ github.ref_name }}.tar.gz
tag: ${{ github.ref_name }}
overwrite: true
body: "$REL_BODY"