Update workflow

This commit is contained in:
Aurélien Hamy 2023-06-22 15:20:19 +02:00
parent ed570526b9
commit 452e95741a
1 changed files with 3 additions and 4 deletions

View File

@ -31,18 +31,16 @@ jobs:
run: make build_tar.xz run: make build_tar.xz
- name: Get the version - name: Get the version
id: get_version
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_ENV" run: echo "version=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_ENV"
- name: Generate sha256 - name: Generate sha256
id: gen_sha256 run: echo "$(sha256sum {deezer.flatpakref,artifacts/x64/*.{deb,rpm,snap,AppImage,tar.xz}})" > sha256
run: echo "sha256=$(sha256sum artifacts/x64/*.{deb,rpm,snap,AppImage,tar.xz} | awk '{ print $1 }')" >> "$GITHUB_ENV"
- name: create release - name: create release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
tag_name: ${{ env.version }} tag_name: ${{ env.version }}
body: 'Update to version ${{ env.version }}\nsha256:\n${{ env.sha256 }}' body: 'Update to version ${{ env.version }}'
draft: false draft: false
files: | files: |
deezer.flatpakref deezer.flatpakref
@ -51,3 +49,4 @@ jobs:
artifacts/x64/*.snap artifacts/x64/*.snap
artifacts/x64/*.AppImage artifacts/x64/*.AppImage
artifacts/x64/*.tar.xz artifacts/x64/*.tar.xz
sha256