Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahmehiz committed Aug 31, 2024
1 parent 2e6d6a4 commit 22d0bb1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
name: Make release

permissions:
contents: write

on:
push:
tags:
- v*

jobs:
release-for-github:
name: "Release for GitHub and F-Droid"
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup JDK 17
uses: actions/setup-java@v4
with:
Expand All @@ -19,6 +24,7 @@ jobs:

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Pre-build
run: |
set -e
Expand All @@ -28,13 +34,16 @@ jobs:
echo "BUILD_TIMESTAMP=$timestamp" >> $GITHUB_ENV
chmod +x ./gradlew
- name: Build release with Gradle
run: ./gradlew assembleRelease

- name: Get tag ame
if: startsWith(github.ref, 'refs/tags/')
run: |
set -x
echo "VERSION_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Sign apk
uses: r0adkll/sign-android-release@v1
with:
Expand All @@ -45,6 +54,7 @@ jobs:
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"

- name: Copy build artifacts
run: |
set -e
Expand All @@ -55,6 +65,7 @@ jobs:
echo "apk-{}-sha256=$sha" >> $GITHUB_ENV'
echo '{"timestamp": ${{ env.BUILD_TIMESTAMP }}}' | jq >> build-metadata.json
- name: Create release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 22d0bb1

Please sign in to comment.