Skip to content

Commit

Permalink
Release in github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cuikho210 committed Mar 29, 2024
1 parent 1c212b7 commit 5d1263c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
working-directory: ./gui
steps:
- uses: actions/checkout@v4
# - uses: actions/setup-java@v4
# with:
# distribution: "zulu"
# java-version: "17"
# cache: "gradle"
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"
cache: "gradle"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
Expand All @@ -31,19 +31,19 @@ jobs:
- name: Generate message code
run: rinf message

# - name: Create upload keystore file
# run: |
# $bytes = [Convert]::FromBase64String("${{ secrets.KEYSTORE_BASE64 }}")
# [IO.File]::WriteAllBytes("D:/keystore.jks", $bytes)
# - name: Create key.properties file
# run: |
# echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" > ./android/key.properties
# echo "keyPassword=${{ secrets.KEYSTORE_PASSWORD }}" >> ./android/key.properties
# echo "keyAlias=upload" >> ./android/key.properties
# echo "storeFile=D:/keystore.jks" >> ./android/key.properties
- name: Create upload keystore file
run: |
$bytes = [Convert]::FromBase64String("${{ secrets.KEYSTORE_BASE64 }}")
[IO.File]::WriteAllBytes("D:/keystore.jks", $bytes)
- name: Create key.properties file
run: |
echo "storePassword=${{ secrets.KEYSTORE_PASSWORD }}" > ./android/key.properties
echo "keyPassword=${{ secrets.KEYSTORE_PASSWORD }}" >> ./android/key.properties
echo "keyAlias=upload" >> ./android/key.properties
echo "storeFile=D:/keystore.jks" >> ./android/key.properties
- name: Build releases
run: flutter_distributor release --name default --jobs release-windows
run: flutter_distributor release --name default

- name: Release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 5d1263c

Please sign in to comment.