-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 1 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: build
on:
- push
jobs:
android:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v2.1.0
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v2
- run: flutter pub get
- run: flutter build apk
# release the apk
- name: Set current date as env variable
run: echo -e "NOW=\"$(git rev-parse --abbrev-ref HEAD) $(date +'%Y-%m-%dT%H:%M:%S')\"\nTAG=$(date +%s)" >> $GITHUB_ENV
- name: tag snapshot
uses: tvdias/github-tagger@v0.0.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.TAG }}
- name: create new release
uses: softprops/action-gh-release@v1
with:
files: "build/app/outputs/flutter-apk/app-release.apk"
name: OptixToolkit ${{ env.NOW }}
tag_name: ${{ env.TAG }}
draft: false
prerelease: false