Skip to content

Commit

Permalink
πŸ”§ feat(ci): ζ΅‹θ―•ζ‰“εŒ…&θ‡ͺεŠ¨ζ›΄ζ–°
Browse files Browse the repository at this point in the history
  • Loading branch information
BTMuli committed Apr 23, 2023
1 parent 27684e6 commit f9763c5
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Publish Release
on:
push:
branches:
- master
tags:
- v*

jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [windows-latest]

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Restore Cargo dependencies
uses: actions/cache@v3
with:
path: |
~/src-tauri/.cargo/bin/
~/src-tauri/.cargo/registry/index/
~/src-tauri/.cargo/registry/cache/
~/src-tauri/.cargo/git/db/
~/src-tauri/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('src-tauri/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Install frontend dependencies
run: npm install
- uses: tauri-apps/tauri-action@dev
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: v__VERSION__-alpha
releaseBody: See the assets to download this version and install.
releaseDraft: true
prerelease: false
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
"csp": null
},
"updater": {
"active": false,
"active": true,
"dialog": true,
"endpoints": ["https://github.com/BTMuli/Tauri.Genshin/latest/releases/download/updater/update.json"],
"endpoints": ["https://github.com/BTMuli/Tauri.Genshin/blob/master/latest.json"],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEU5OEE2RkU0QUZCMTMzMUEKUldRYU03R3Y1RytLNlI4bytTRDhpYTNTL2lTOUVZeWQwOTAxNHBock8zY3FrdVliR2kvdHhoN2IK"
},
"windows": [
Expand Down

0 comments on commit f9763c5

Please sign in to comment.