Skip to content

Commit

Permalink
chore(ci): release
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum committed Apr 17, 2022
1 parent d34e4eb commit 0b03c86
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 43 deletions.
69 changes: 49 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,64 @@ permissions:
contents: write

jobs:
release-windows:
runs-on: windows-latest
test:
strategy:
fail-fast: false
matrix:
platform: [ macos-latest, ubuntu-18.04, windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
name: Setup Cargo Toolchain 🛎️
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Setup Cargo Toolchain (Mac) 🛎️
uses: actions-rs/toolchain@v1
if: matrix.platform == 'macos-latest'
with:
toolchain: stable
target: x86_64-pc-windows-gnu
target: aarch64-apple-darwin
profile: minimal
default: true
- uses: Swatinem/rust-cache@v1
- run: make win
- uses: softprops/action-gh-release@v1
with:
files: dist/*.exe
release-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
name: Setup Cargo Toolchain 🛎️
- name: Setup Cargo Toolchain 🛎️
uses: actions-rs/toolchain@v1
if: matrix.platform != 'macos-latest'
with:
toolchain: stable
target: aarch64-apple-darwin
profile: minimal
default: true
- uses: Swatinem/rust-cache@v1
- run: make osx
- uses: softprops/action-gh-release@v1
- name: Install Dependencies (Ubuntu only)
if: matrix.platform == 'ubuntu-18.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: Cache Pnpm Modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: release-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
release-${{ runner.os }}-
- uses: pnpm/action-setup@v2.1.0
name: Install App Dependencies
with:
version: latest
run_install: true
- uses: PhotonQuantum/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
with:
files: dist/*.dmg
tagName: v__VERSION__
releaseName: 'v__VERSION__'
releaseBody: ''
releaseDraft: true
prerelease: false
args: ${{ matrix.platform == 'macos-latest' && '-v --target universal-apple-darwin' || '-v' }}
20 changes: 0 additions & 20 deletions makefile

This file was deleted.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "shuiyuan-archiver"
description = "一个将上海交通大学水源社区的文章存档的工具"
authors = ["LightQuantum <self@lightquantum.me>"]
version = "0.3.0"
version = "0.3.0-beta.1"
edition = "2021"
build = "build.rs"
repository = "https://github.com/PhotonQuantum/shuiyuan-archiver"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": {
"productName": "ShuiyuanArchiver",
"version": "0.3.0"
"version": "0.3.0-beta.1"
},
"build": {
"distDir": "../dist",
Expand Down

0 comments on commit 0b03c86

Please sign in to comment.