Merge pull request #102 from iamsrikanthnani/release/v0.1.6 #27
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: "publish" | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| publish-tauri: | |
| permissions: | |
| contents: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: "macos-latest" | |
| args: "--target aarch64-apple-darwin" | |
| - platform: "macos-latest" | |
| args: "--target x86_64-apple-darwin" | |
| - platform: "ubuntu-22.04" | |
| args: "" | |
| - platform: "windows-latest" | |
| args: "" | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | |
| - name: Install system deps (Ubuntu) | |
| if: matrix.platform == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev \ | |
| librsvg2-dev patchelf libgtk-3-dev pkg-config \ | |
| libasound2-dev libpulse-dev fuse libfuse2 squashfs-tools \ | |
| xz-utils wget file libglib2.0-dev libgdk-pixbuf2.0-dev libcairo-gobject2 \ | |
| libayatana-appindicator3-dev ca-certificates binutils | |
| sudo update-ca-certificates -f | |
| - name: Create environment file | |
| run: | | |
| echo "API_ACCESS_KEY=${{ secrets.API_ACCESS_KEY }}" > src-tauri/.env | |
| echo "PAYMENT_ENDPOINT=${{ secrets.PAYMENT_ENDPOINT }}" >> src-tauri/.env | |
| echo "APP_ENDPOINT=${{ secrets.APP_ENDPOINT }}" >> src-tauri/.env | |
| echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> src-tauri/.env | |
| - name: Install frontend deps | |
| run: npm ci | |
| - name: Build & publish | |
| uses: tauri-apps/tauri-action@v0.5.16 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} | |
| API_ACCESS_KEY: ${{ secrets.API_ACCESS_KEY }} | |
| PAYMENT_ENDPOINT: ${{ secrets.PAYMENT_ENDPOINT }} | |
| APP_ENDPOINT: ${{ secrets.APP_ENDPOINT }} | |
| POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }} | |
| with: | |
| tagName: app-v__VERSION__ | |
| releaseName: "Pluely v__VERSION__" | |
| releaseBody: "Download binaries for your OS. macOS users: If blocked, go to System Settings > Privacy & Security > Security section, find 'pluely was blocked' message, click 'Allow Anyway', then reopen the app." | |
| releaseDraft: true | |
| prerelease: false | |
| includeUpdaterJson: true | |
| updaterJsonPreferNsis: true | |
| args: ${{ matrix.args }} |