update version number #81
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: | |
- 'v*' | |
workflow_dispatch: | |
jobs: | |
publish-web: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: corepack enable | |
- name: install Rust nightly | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
- name: install wasm-pack | |
run: | |
npm install -g wasm-pack | |
- name: install app dependencies and build it | |
run: yarn && yarn build-web | |
# Run type check after the wasm package is built | |
- name: run tsc | |
run: yarn tsc --noEmit | |
- name: upload files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bestcraft-dist | |
path: dist/ | |
deploy-web: | |
needs: publish-web | |
runs-on: ubuntu-latest | |
environment: FTP Deployer | |
steps: | |
- name: download files | |
uses: actions/download-artifact@v3 | |
with: | |
name: bestcraft-dist | |
- name: sync files | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ vars.FTP_SERVER }} | |
username: ${{ vars.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
server-dir: / | |
publish-tauri: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-20.04, windows-latest] | |
environment: UpdaterSigner | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: corepack enable | |
- name: install Rust nightly | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
- name: install dependencies (ubuntu only) | |
if: matrix.platform == 'ubuntu-20.04' | |
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 and build it | |
run: yarn install | |
- uses: tauri-apps/tauri-action@v0 | |
id: tauri_build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
with: | |
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version | |
releaseName: "BestCraft v__VERSION__" | |
releaseBody: | | |
v0.15.0 | |
- 新增分析器功能,可用于测试宏的防黑球效果等 | |
- 修复特殊情况下模拟不准确的问题 | |
releaseDraft: false | |
prerelease: false |