Skip to content

chore(config): migrate config .github/renovate.json (#229) #47

chore(config): migrate config .github/renovate.json (#229)

chore(config): migrate config .github/renovate.json (#229) #47

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@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # 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@7b1c307e0dcbda6122208f10795a713336a9b35a # 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@756568b1607d388e6b5f3e22b86f553543921295 # 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