1
0
Fork 0

added publish workflow

This commit is contained in:
Kim, Jimin 2022-02-08 13:50:00 +09:00
parent 56e03bf6f4
commit e6a963289d

45
.github/workflows/publish.yml vendored Normal file
View file

@ -0,0 +1,45 @@
name: "publish"
on: workflow_dispatch
jobs:
publish-tauri:
strategy:
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup nodejs
uses: actions/setup-node@v2
with:
node-version: 16
cache: yarn
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install webkit2gtk
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Install dependencies & Build
run: yarn && yarn build
# the action automatically replaces __VERSION__ with the app version
- name: Create Release
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: v__VERSION__
releaseName: "WBM Installer v__VERSION__"
releaseBody:
releaseDraft: true