change spelling #38
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 Deploy Tauri App | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| branches: '*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: [macos-latest, ubuntu-latest, windows-latest] | |
| include: | |
| - os: ubuntu-latest | |
| rust_target: x86_64-unknown-linux-gnu | |
| - os: macos-latest | |
| rust_target: x86_64-apple-darwin | |
| - os: macos-latest | |
| rust_target: aarch64-apple-darwin | |
| - os: windows-latest | |
| rust_target: x86_64-pc-windows-msvc | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Node.js setup | |
| uses: actions/setup-node@v4.0.3 | |
| with: | |
| node-version: latest | |
| - name: Install Rust (Stable) | |
| run: | |
| curl https://sh.rustup.rs -sSf | sh -s -- -y | |
| - name: Install dependencies (ubuntu only) | |
| if: matrix.platform == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf | |
| - name: Install app dependencies and build web | |
| run: yarn install --frozen-lockfile | |
| - name: Build the app | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
| TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
| with: | |
| tagName: "v__VERSION__" | |
| releaseName: "Keysaver v__VERSION__" | |
| deploy-latest-json: | |
| needs: release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Fetch latest.json from release | |
| run: | | |
| curl -L -o latest.json $(curl -s https://api.github.com/repos/DeikuModder/keysaver/releases/latest \ | |
| | jq -r '.assets[] | select(.name == "latest.json") | .browser_download_url') | |
| - name: Publish latest.json to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./ |