This commit is contained in:
Hillel Coren 2023-11-01 17:03:20 +02:00
parent f094cc75ff
commit 16c6c04543
2 changed files with 10 additions and 33 deletions

View File

@ -57,7 +57,10 @@ jobs:
cd build/linux/x64/release/bundle || exit
tar -czaf $archiveName ./*
shasum -a 256 $archiveName > sha256.txt
mv $archiveName "$baseDir"/
mv sha256.txt "$baseDir"/
- name: Upload app archive to workflow
uses: actions/upload-artifact@v3
@ -65,6 +68,12 @@ jobs:
name: Invoice-Ninja-Archive
path: Invoice-Ninja-Linux-Portable.tar.gz
- name: Upload app archive hash to workflow
uses: actions/upload-artifact@v3
with:
name: Invoice-Ninja-Hash
path: sha256.txt
- name: Download artifacts
uses: actions/download-artifact@v3
with:
@ -80,6 +89,7 @@ jobs:
automatic_release_tag: "v5.0.128"
files: |
${{ github.workspace }}/artifacts/Invoice-Ninja-Archive
${{ github.workspace }}/artifacts/Invoice-Ninja-Hash
# build-flatpak:
# name: Build flatpak

View File

@ -1,33 +0,0 @@
name: Generate Hashes
on:
release:
types: [published]
jobs:
build:
name: Generate Hashes
env:
commit_secret: ${{ secrets.commit_secret }}
runs-on: ubuntu-latest
steps:
- name: Generate Hashes
uses: MCJack123/ghaction-generate-release-hashes@v4
with:
hash-type: sha256
file-name: hashes.txt
- uses: actions/upload-artifact@v2
with:
name: Asset Hashes
path: hashes.txt
# - name: Upload Hashes to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: hashes.txt
# overwrite: true
# asset_name: hashes.txt
# tag: ${{ github.ref }}