diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml index 68bbbe99956..bf79ac5aa77 100644 --- a/.github/workflows/flatpak.yml +++ b/.github/workflows/flatpak.yml @@ -15,7 +15,7 @@ env: jobs: build-flutter-app: - name: Build Flutter app + name: Build Flutter env: api_secret: ${{ secrets.api_secret }} commit_secret: ${{ secrets.commit_secret }} @@ -59,16 +59,6 @@ jobs: tar -czaf $archiveName ./* mv $archiveName "$baseDir"/ - - uses: MCJack123/ghaction-generate-release-hashes@v3 - with: - hash-type: sha256 - file-name: hashes.txt - - - uses: actions/upload-artifact@v2 - with: - name: Asset Hashes - path: hashes.txt - - name: Upload app archive to workflow uses: actions/upload-artifact@v3 with: @@ -90,7 +80,6 @@ jobs: automatic_release_tag: "v5.0.128" files: | ${{ github.workspace }}/artifacts/Invoice-Ninja-Archive - ${{ github.workspace }}/artifacts/hashes.txt # build-flatpak: # name: Build flatpak diff --git a/.github/workflows/hashes.yml b/.github/workflows/hashes.yml new file mode 100644 index 00000000000..2efb065c482 --- /dev/null +++ b/.github/workflows/hashes.yml @@ -0,0 +1,28 @@ +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@v1 + with: + hash-type: sha256 + file-name: 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 }} diff --git a/bump_version.sh b/bump_version.sh new file mode 100644 index 00000000000..fc7cf938990 --- /dev/null +++ b/bump_version.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "Bump version..." + +current_version=$(grep "version: 5.0." pubspec.yaml | cut -f2 -d "+" ) +echo "Current Version: $current_version" + +new_vesion=$((current_version+1)) +echo "New Version: $new_vesion" + +# pubspec.foss.yaml +# pubspec.yaml +# flatpak.yml +# com.invoiceninja.app.metainfo +# contants +# snapcraft \ No newline at end of file