Skip to content

Commit

Permalink
Test github action release
Browse files Browse the repository at this point in the history
  • Loading branch information
cuikho210 committed Mar 29, 2024
1 parent 685e890 commit d79c183
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 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,23 +31,24 @@ 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
run: flutter_distributor release --name default --jobs release-windows

- name: Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: dist/*
artifacts: gui/dist/*
generateReleaseNotes: true
artifactErrorsFailBuild: true

0 comments on commit d79c183

Please sign in to comment.