Skip to content

Commit

Permalink
Add publish releases (#26)
Browse files Browse the repository at this point in the history
* Add publish release

* Update release.yml

* Add version

* Fix env

* Fix tag

* Test github run number

* Remove build number

* Add env prefix

* TEST

* Test build number

* Add github run number

* Remove hello world
  • Loading branch information
LionZXY authored Aug 28, 2020
1 parent eaecb47 commit 8cb3cf3
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,35 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build release
run: ./gradlew assembleRelease
- uses: actions/upload-artifact@v2
name: Publish APK in releases
with:
name: Flipper-App
path: app/build/outputs/apk/release/app-release-unsigned.apk
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: 0.1.${{ github.run_number }}
release_name: Flipper App 0.1.${{ github.run_number }}
draft: false
prerelease: true
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: app/build/outputs/apk/release/app-release-unsigned.apk
asset_name: FlipperApp.apk
asset_content_type: application/zip

0 comments on commit 8cb3cf3

Please sign in to comment.