Skip to content

Commit

Permalink
Update git workflows
Browse files Browse the repository at this point in the history
Build nightly builds only from the respective branch.
The main branch will be used only for the stable releases from now on.

Also add sha256 checksum to each files in the release (Fixes #380)

Signed-off-by: IacobIonut01 <[email protected]>
  • Loading branch information
IacobIonut01 committed Jun 23, 2024
1 parent dd40803 commit 0779a5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Nightly CI
on:
push:
branches:
- main
- nightly

jobs:
build_nomaps:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: Gallery Release (No Maps)
path: app/build/**/*.apk
path: app/build/**/*.apk

build_maps:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -108,6 +108,8 @@ jobs:
name: Gallery Release (Maps)
- name: Remove apk release suffix
run: find . -name "Gallery-*.apk" -exec bash -c 'mv "$1" "${1//-release/}"' _ {} \;
- name: Generate SHA256
run: find . -name "Gallery-*.apk" -exec bash -c 'sha256sum "$1" | awk '{print $1}' > "${file}.sha256' _ {} \;
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
Expand All @@ -117,5 +119,6 @@ jobs:
tag_name: ${{ needs.build_maps.outputs.versionName }}-${{ needs.build_maps.outputs.versionCode }}-nightly
files: |
./**/Gallery-*.apk
./**/Gallery-*.apk.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ jobs:
name: Gallery Release (Maps)
- name: Remove apk release suffix
run: find . -name "Gallery-*.apk" -exec bash -c 'mv "$1" "${1//-release/}"' _ {} \;
- name: Generate SHA256
run: find . -name "Gallery-*.apk" -exec bash -c 'sha256sum "$1" | awk '{print $1}' > "${file}.sha256' _ {} \;
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
Expand All @@ -142,5 +144,6 @@ jobs:
tag_name: ${{ needs.build_maps.outputs.versionName }}-${{ needs.build_maps.outputs.versionCode }}
files: |
./**/Gallery-*.apk
./**/Gallery-*.apk.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0779a5e

Please sign in to comment.