Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
axiangcoding committed Jun 13, 2024
1 parent 3d4db61 commit a8e63d7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Sync node version and setup cache
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Lint
run: make lint
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
tags:
- "v*"
pull_request:
branches:
- main
workflow_dispatch:
Expand All @@ -15,7 +14,11 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
platform:
# TODO 其他平台均支持打包,但未经过测试,故暂时屏蔽掉
# - "macos-latest"
# - "ubuntu-latest"
- "windows-latest"
runs-on: ${{ matrix.platform }}

steps:
Expand All @@ -41,20 +44,19 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn" # Set this to npm, yarn or pnpm.
cache: "yarn"

- name: Install frontend dependencies
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: yarn install # Change this to npm, yarn or pnpm.

run: yarn install
- name: Build the app
uses: tauri-apps/tauri-action@v0

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
releaseName: "App Name v__VERSION__" # tauri-action replaces \_\_VERSION\_\_ with the app version.
releaseName: "wt-helper-app v__VERSION__" # tauri-action replaces \_\_VERSION\_\_ with the app version.
releaseBody: "See the assets to download and install this version."
releaseDraft: true
prerelease: false
releaseDraft: false
prerelease: ${{ github.event_name == 'push' && contains(github.ref, 'refs/heads/main') && !startsWith(github.ref, 'refs/tags/v') }}

0 comments on commit a8e63d7

Please sign in to comment.