Release workflow #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Validate Gradle wrapper | |
uses: gradle/[email protected] | |
- 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 }} |