Update main.yml
This commit is contained in:
parent
125f4a5dab
commit
c61347ed01
1 changed files with 4 additions and 20 deletions
24
.github/workflows/main.yml
vendored
24
.github/workflows/main.yml
vendored
|
@ -18,28 +18,12 @@ jobs:
|
||||||
env:
|
env:
|
||||||
KEYSTORE_GITHUB: ${{ secrets.KEYSTORE_GITHUB }}
|
KEYSTORE_GITHUB: ${{ secrets.KEYSTORE_GITHUB }}
|
||||||
KEY_PROPERTIES_GITHUB: ${{ secrets.KEY_PROPERTIES_GITHUB }}
|
KEY_PROPERTIES_GITHUB: ${{ secrets.KEY_PROPERTIES_GITHUB }}
|
||||||
|
KEY_PROPERTIES_DUMMY: ${{ secrets.KEY_PROPERTIES_DUMMY }}
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
java-version: '12.x'
|
|
||||||
distribution: 'zulu'
|
|
||||||
- run: echo $KEYSTORE_GITHUB | base64 --decode > android/github.jks
|
- run: echo $KEYSTORE_GITHUB | base64 --decode > android/github.jks
|
||||||
- run: echo $KEY_PROPERTIES_GITHUB > android/key.properties
|
- run: echo $KEY_PROPERTIES_DUMMY > android/key.properties
|
||||||
- uses: subosito/flutter-action@v2
|
- run: echo $KEY_PROPERTIES_DUMMY
|
||||||
with:
|
- run: cat android/key.properties
|
||||||
flutter-version: '3.3.3'
|
|
||||||
- run: flutter pub get
|
|
||||||
- run: flutter build apk --flavor github
|
|
||||||
- name: Upload a Build Artifact
|
|
||||||
uses: actions/upload-artifact@v3.1.0
|
|
||||||
with:
|
|
||||||
name: app-release.apk
|
|
||||||
path: src/build/app/outputs/flutter-apk/app-github-release.apk
|
|
||||||
- name: Github Release
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
|
||||||
with:
|
|
||||||
files: src/build/app/outputs/flutter-apk/app-github-release.apk
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue