Skip to content

Test release Github action #4

Test release Github action

Test release Github action #4

name: Create release
on:
push:
branches:
- master
paths:
- version.txt
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Build APK
run: ./gradlew assembleRelease
env:
TMDB_API_KEY: ${{ secrets.TMDB_API_KEY }}
- name: Extract version name
run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
- name: Create release
id: release
uses: release-drafter/release-drafter@v5
with:
tag: ${{ env.VERSION }}
prerelease: true
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.VERSION }}
files: |
app/build/outputs/bundle/release/release-${{ env.VERSION }}.apk