Skip to content

Commit

Permalink
Flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Nov 1, 2023
1 parent 9235746 commit 7358d9e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/hashes.yml
Original file line number Diff line number Diff line change
@@ -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 }}
16 changes: 16 additions & 0 deletions bump_version.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7358d9e

Please sign in to comment.