chore(deps): update tauri-apps/tauri-action digest to 97cc3d1 (#216) #37
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
on: | |
push: | |
branches: | |
- main | |
permissions: read-all | |
env: | |
CARGO_TERM_COLOR: always | |
# sccache enablement | |
SCCACHE_GHA_ENABLED: true | |
RUSTC_WRAPPER: sccache | |
name: Release Please | |
jobs: | |
release-please: | |
name: Release Please | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4 | |
id: release | |
with: | |
# this assumes that you have created a personal access token | |
# (PAT) and configured it as a GitHub action secret named | |
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# this is a built-in strategy in release-please, see "Action Inputs" | |
# for more options | |
release-type: node | |
# a configuration file that tells release-please how to bump | |
# versions and create releases | |
config-file: .github/release-please-config.json | |
# manifest file for initial version | |
manifest-file: .github/release-please-manifest.json | |
outputs: | |
releases_created: ${{ steps.release.outputs.releases_created }} | |
publish-tauri: | |
needs: | |
- release-please | |
if: needs.release-please.outputs.releases_created == 'true' | |
name: 'Publish Tauri App' | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-22.04, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Install bun | |
uses: oven-sh/setup-bun@123c6c4e2fea3eb7bffaa91a85eb6b3d505bf7af # v2 | |
- name: Create Fake .env File (dotenvy_macro requirement) | |
run: | | |
touch src-tauri/.env | |
echo APTABASE_KEY=${{ secrets.APTABASE_KEY }} >> src-tauri/.env | |
- name: Install Dependencies (Ubuntu only) | |
if: matrix.platform == 'ubuntu-22.04' | |
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature. | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libwebkit2gtk-4.0-dev \ | |
build-essential \ | |
curl \ | |
wget \ | |
file \ | |
libssl-dev \ | |
libgtk-3-dev \ | |
libayatana-appindicator3-dev \ | |
librsvg2-dev | |
sudo apt-get install -y javascriptcoregtk-4.1 \ | |
libsoup-3.0 \ | |
webkit2gtk-4.1 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17 # master | |
with: | |
toolchain: stable | |
- name: Run sccache-cache | |
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af # v0.0.5 | |
- name: Install Dependencies and Build | |
run: | | |
bun install | |
bun run build | |
- name: Build the Tauri App | |
uses: tauri-apps/tauri-action@97cc3d15c81fbde0d72e484937066139686853e5 # dev | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_PRIVATE_KEY_PASSWORD }} | |
with: | |
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version | |
releaseName: 'v__VERSION__' | |
releaseDraft: true | |
prerelease: false |