2021-12-25 21:43:29 +03:00
|
|
|
name: Release Project
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-12-25 21:46:47 +03:00
|
|
|
tags:
|
|
|
|
- v*
|
2021-12-25 21:43:29 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-tauri:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-01-09 16:34:14 +03:00
|
|
|
platform: [windows-latest, macos-latest]
|
2021-12-25 21:43:29 +03:00
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
2022-01-07 21:12:12 +03:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Node
|
2021-12-25 21:43:29 +03:00
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 14
|
2022-01-07 21:12:12 +03:00
|
|
|
|
|
|
|
- name: Install Rust
|
2021-12-25 21:43:29 +03:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
2022-01-07 21:12:12 +03:00
|
|
|
profile: minimal
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: Get yarn cache dir path
|
2021-12-25 21:43:29 +03:00
|
|
|
id: yarn-cache-dir-path
|
|
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
2022-01-07 21:12:12 +03:00
|
|
|
|
|
|
|
- name: Yarn Cache
|
|
|
|
uses: actions/cache@v2
|
2021-12-25 21:43:29 +03:00
|
|
|
id: yarn-cache
|
|
|
|
with:
|
|
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-yarn-
|
2022-01-07 21:12:12 +03:00
|
|
|
|
|
|
|
- name: Rust Cache
|
|
|
|
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
|
|
|
|
|
|
|
|
- name: Yarn install and check
|
2022-01-07 20:56:28 +03:00
|
|
|
run: yarn && yarn run check
|
2022-01-07 21:12:12 +03:00
|
|
|
|
|
|
|
- name: Tauri build
|
|
|
|
uses: tauri-apps/tauri-action@v0
|
2021-12-25 21:43:29 +03:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
2021-12-26 09:10:04 +03:00
|
|
|
tagName: v__VERSION__
|
2021-12-25 21:43:29 +03:00
|
|
|
releaseName: "Clash Verge v__VERSION__"
|
2022-01-10 21:26:50 +03:00
|
|
|
releaseBody: "Clash Verge now supports Windows and macos(intel)."
|
|
|
|
releaseDraft: false
|
|
|
|
prerelease: true
|