deployment changes #264
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: build | |
on: | |
- push | |
jobs: | |
android: | |
runs-on: ubuntu-latest | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
steps: | |
- uses: actions/[email protected] | |
- 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/[email protected] | |
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 | |