Y2023 support (#2006) #200
Workflow file for this run
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
name: "publish" | |
on: | |
push: | |
tags: | |
- app-v* | |
jobs: | |
publish-tauri: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::__VERSION__ | |
shell: bash | |
## https://github.com/tauri-apps/tauri/blob/76187298c1d52dc764c5192c6a770a65f44b82ab/.github/workflows/smoke-test-prod.yml | |
## Following that example, we cache directories for both cargo and node. | |
## The cache action will check caches before these directories are required, and update the caches if necessary | |
## at the end of the job (after cargo install and node install if those are necessary). | |
- name: cache rust bin | |
id: cache_rust_bin | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cargo/bin/ | |
key: ${{ runner.OS }}-xbuild-bin-${{ hashFiles('**/Cargo.toml') }} | |
- name: cache rust registry/index | |
id: cache_rust_reg_index | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cargo/registry/index | |
key: ${{ runner.OS }}-xbuild-reg-index-${{ hashFiles('**/Cargo.toml') }}- | |
- name: cache rust registry/cache | |
id: cache_rust_reg_cache | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cargo/registry/cache/ | |
key: ${{ runner.OS }}-xbuild-reg-cache-${{ hashFiles('**/Cargo.toml') }}- | |
- name: install Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
- 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 | |
run: npm ci | |
- name: build it | |
run: npm run desktop-release | |
- uses: tauri-apps/tauri-action@dev | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
releaseName: App v${{ steps.get_version.outputs.VERSION }} | |
tagName: app-v${{ steps.get_version.outputs.VERSION }} | |
releaseBody: "See the assets to download this version and install." | |
releaseDraft: false | |
prerelease: false |