fix: add warning when server is running without JWT auth #800
Workflow file for this run
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
| name: Build and Release | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| tags: | |
| - zkool-v* | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| target: android | |
| - os: ubuntu-latest | |
| target: linux | |
| arch: x86_64 | |
| - os: ubuntu-24.04-arm | |
| target: linux | |
| arch: aarch64 | |
| - os: macos-latest | |
| target: mac | |
| - os: windows-latest | |
| target: windows | |
| env: | |
| FLUTTER_VERSION: 3.41.7 | |
| steps: | |
| - name: Install RUST | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install PYTHON | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Flutter | |
| shell: bash | |
| run: | | |
| git clone --depth 1 --branch "$FLUTTER_VERSION" https://github.com/flutter/flutter.git $RUNNER_TEMP/flutter | |
| echo "$RUNNER_TEMP/flutter/bin" >> $GITHUB_PATH | |
| - run: | | |
| flutter --version | |
| flutter precache | |
| shell: bash | |
| - name: Get version number | |
| id: version | |
| shell: bash | |
| run: | | |
| RELEASE_VERSION=$(sed -n 's/^version: *//p' pubspec.yaml) | |
| echo "result=$RELEASE_VERSION" >> $GITHUB_OUTPUT | |
| - name: Build Android | |
| id: build_android | |
| if: ${{ matrix.target == 'android' && github.event_name != 'pull_request' }} | |
| uses: ./.github/actions/android | |
| with: | |
| version: ${{ steps.version.outputs.result }} | |
| jks: ${{ secrets.JKS_PASSWORD }} | |
| - name: Build Linux | |
| id: build_linux | |
| if: ${{ matrix.target == 'linux' }} | |
| uses: ./.github/actions/linux | |
| with: | |
| version: ${{ steps.version.outputs.result }} | |
| os: ${{ matrix.os }} | |
| arch: ${{ matrix.arch }} | |
| - name: Build Mac | |
| id: build_mac | |
| if: ${{ matrix.target == 'mac' && github.event_name != 'pull_request' }} | |
| uses: ./.github/actions/mac | |
| with: | |
| version: ${{ steps.version.outputs.result }} | |
| jks: ${{ secrets.JKS_PASSWORD }} | |
| ios_pwd: ${{ secrets.IOS_CERTIFICATE_PASSWORD }} | |
| mac_pwd: ${{ secrets.MACOS_CERTIFICATE_PWD }} | |
| apple_cert_name: ${{ secrets.MACOS_CERTIFICATE_NAME }} | |
| apple_id: ${{ secrets.MACOS_NOTARIZATION_APPLE_ID }} | |
| apple_pwd: ${{ secrets.MACOS_NOTARIZATION_PWD }} | |
| apple_team_id: ${{ secrets.MACOS_NOTARIZATION_TEAM_ID }} | |
| - name: Build Windows | |
| id: build_windows | |
| if: ${{ matrix.target == 'windows' && github.event_name != 'pull_request' }} | |
| uses: ./.github/actions/windows | |
| with: | |
| version: ${{ steps.version.outputs.result }} | |
| - name: Collect output dir | |
| id: collect | |
| shell: bash | |
| run: | | |
| df -h | |
| echo "outdir=${{ steps.build_android.outputs.outdir || steps.build_linux.outputs.outdir || steps.build_mac.outputs.outdir || steps.build_windows.outputs.outdir }}" >> $GITHUB_OUTPUT | |
| - name: Create Release | |
| if: startsWith(github.ref_name, 'zkool-v') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: ${{ steps.collect.outputs.outdir }}/* | |
| draft: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |