Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lhns committed Jul 27, 2021
1 parent 60713c8 commit add513b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release

on:
release:
types: [ published ]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2.1.0
with:
distribution: 'adopt'
java-version: '11'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assemble
- uses: actions/upload-artifact@v2
with:
path: 'app/build/outputs/apk/release/app-release-unsigned.apk'
- uses: AButler/upload-release-assets@v2.0
with:
files: 'app/build/outputs/apk/release/app-release-unsigned.apk'
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit add513b

Please sign in to comment.