Created
May 9, 2020 18:51
-
-
Save iqan/e2fb9780da6962d3602bdf4ea6fc383b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| build: | |
| name: Build APK and Create release | |
| needs: [ version ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - uses: actions/setup-java@v1 | |
| with: | |
| java-version: '12.x' | |
| - uses: subosito/flutter-action@v1 | |
| with: | |
| flutter-version: '1.17.0' | |
| - name: Get version.txt | |
| uses: actions/download-artifact@v2 | |
| with: | |
| name: gitversion | |
| - name: Read version | |
| id: version | |
| uses: juliangruber/read-file-action@v1 | |
| with: | |
| path: version.txt | |
| - run: flutter pub get | |
| - run: flutter test | |
| - run: flutter build apk --release --split-per-abi | |
| - run: flutter build appbundle | |
| - name: Create a Release in GitHub | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: "build/app/outputs/apk/release/*.apk,build/app/outputs/bundle/release/app-release.aab" | |
| token: ${{ secrets.GH_TOKEN }} | |
| tag: ${{ steps.version.outputs.content }} | |
| commit: ${{ github.sha }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment