test ci #27
Workflow file for this run
This file contains 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
name: Build and release | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build: | |
runs-on: windows-latest | |
permissions: write-all | |
defaults: | |
run: | |
working-directory: ./gui | |
steps: | |
- uses: actions/checkout@v4 | |
# - uses: actions/setup-java@v4 | |
# with: | |
# distribution: "zulu" | |
# java-version: "17" | |
# cache: "gradle" | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
cache: true | |
# - name: Install flutter_distributor | |
# run: dart pub global activate flutter_distributor | |
- name: Install rinf | |
run: cargo install rinf | |
- name: Generate message code | |
run: rinf message | |
- name: Setup Microsoft Store Developer CLI | |
uses: microsoft/setup-msstore-cli@v1 | |
- name: Configure Microsoft Store Developer CLI | |
run: msstore reconfigure --tenantId ${{ secrets.PARTNER_CENTER_TENANT_ID }} --sellerId ${{ secrets.PARTNER_CENTER_SELLER_ID }} --clientId ${{ secrets.PARTNER_CENTER_CLIENT_ID }} --clientSecret ${{ secrets.PARTNER_CENTER_CLIENT_SECRET }} | |
# - 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 release for windows | |
run: msstore package | |
# - name: Build releases | |
# run: flutter_distributor release --name default | |
# - name: Release to artifacts | |
# uses: ncipollo/release-action@v1 | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# artifacts: gui/dist/*/* | |
# generateReleaseNotes: true | |
# artifactErrorsFailBuild: true | |
- name: Publish to microsoft test flight | |
run: msstore publish |