Skip to content

Commit

Permalink
Publishing release builds by setting tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillt committed Nov 25, 2022
1 parent f956f95 commit 7fa13d2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
distribution: 'adopt'
cache: gradle

- name: Grant execute permission for gradlew
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release the app

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
environment: Development
env:
ACRA_LOGIN: ${{ secrets.ACRARIUM_BASIC_AUTH_LOGIN }}
ACRA_PASS: ${{ secrets.ACRARIUM_BASIC_AUTH_PASSWORD }}
ACRA_URI: ${{ secrets.ACRARIUM_URI }}
BRANCH_NAME: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'

- name: Build Release APK
run: ./gradlew assembleRelease

- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "./app/build/outputs/apk/release/*.apk"
token: ${{ secrets.GITHUB_TOKEN }}
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 7fa13d2

Please sign in to comment.