diff options
author | Ricki Hirner <hirner@bitfire.at> | 2022-05-05 15:39:29 +0300 |
---|---|---|
committer | Ricki Hirner <hirner@bitfire.at> | 2022-05-05 16:21:57 +0300 |
commit | d3c10c36b04841bb57d4589aac70dfa19a33f1d7 (patch) | |
tree | 8d3cf350cfbcfdf59c34a41f8f8ce7d5e55f0a88 /.github | |
parent | f37f3e510466bde601144b2f3f4d7a3fc222d52d (diff) |
CI: create Github release for new tagsv4.2.1-ose
Diffstat (limited to '.github')
-rw-r--r-- | .github/ISSUE_TEMPLATE/config.yml | 6 | ||||
-rw-r--r-- | .github/workflows/release.yml | 39 |
2 files changed, 39 insertions, 6 deletions
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index e5c195f5..00000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,6 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: DAVx⁵ Community Forum - url: https://www.davx5.com/forums - about: Please use our forum for questions, support, suggestions etc. - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..abd61909 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Create release +on: + push: + tags: + - v* +jobs: + build: + name: Create release + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: 11 + cache: 'gradle' + - uses: gradle/wrapper-validation-action@v1 + + - name: Prepare keystore + run: echo ${{ secrets.android_keystore_base64 }} | base64 -d >$GITHUB_WORKSPACE/keystore.jks + + - name: Build signed package + run: ./gradlew app:assembleRelease + env: + ANDROID_KEYSTORE: ${{ github.workspace }}/keystore.jks + ANDROID_KEYSTORE_PASSWORD: ${{ secrets.android_keystore_password }} + ANDROID_KEY_ALIAS: ${{ secrets.android_key_alias }} + ANDROID_KEY_PASSWORD: ${{ secrets.android_key_password }} + + - name: Create Github release + uses: softprops/action-gh-release@v0.1.14 + with: + prerelease: ${{ contains(github.ref_name, '-alpha') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-rc') }} + files: app/build/outputs/apk/standard/release/*.apk + fail_on_unmatched_files: true |