Skip to content

✨ feat(commands): some small problem #32

✨ feat(commands): some small problem

✨ feat(commands): some small problem #32

Workflow file for this run

name: "release"
on:
push:
tags:
- v*
jobs:
changelog:
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changelog_reader.outputs.changes }}
version: ${{ steps.get_version.outputs.VERSION }}
steps:
- uses: actions/checkout@v4
- name: Get Version number
id: get_version
run: |
VERSION=$(jq -r '.version' package.json)
echo $VERSION
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Changelog Reader
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
path: "CHANGELOG.md"
version: ${{ steps.get_version.outputs.VERSION }}
publish-tauri:
needs: changelog
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: "macos-latest" # for Arm based macs (M1 and above).
args: "--target aarch64-apple-darwin"
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"
- platform: "windows-latest"
args: "--target aarch64-pc-windows-msvc --bundles nsis"
- platform: "windows-latest"
args: "--target x86_64-pc-windows-msvc --bundles nsis"
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || matrix.platform == 'windows-latest' && 'aarch64-pc-windows-msvc,x86_64-pc-windows-msvc' }}
- name: install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: install frontend dependencies
run: pnpm install
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: "USTB WiFi Tools v__VERSION__"
releaseBody: ${{ needs.changelog.outputs.changes }}
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
includeUpdaterJson: true