diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43d990f..db9a5ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,4 +16,23 @@ jobs: - 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 "NOW=\"$(git rev-parse --abbrev-ref HEAD) $(date +'%Y-%m-%dT%H:%M:%S')\"" >> $GITHUB_ENV + - name: tag snapshot + uses: tvdias/github-tagger@v0.0.1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ env.NOW }} + - 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.NOW }} + draft: false + prerelease: false + +