Skip to content

Commit

Permalink
Add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
probablykasper committed Nov 12, 2021
1 parent c5b9eaa commit 96377cc
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [probablykasper]
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release
on:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
release:
strategy:
fail-fast: false
matrix:
platform: [macos-10.15, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Node.js setup
uses: actions/setup-node@v1
with:
node-version: 14

- name: Rust setup
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- run: npm install

- run: npm run build

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# the action automatically replaces __VERSION__ with the app version
tagName: v__VERSION__
releaseName: 'v__VERSION__'
releaseDraft: true
prerelease: false
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,13 @@
- `npm run build`: Build
- `npm run lint`: Lint
- `npm run check`: Run svelte-check

### Release new version
1. Update `CHANGELOG.md`
2. Manually bump the version number in `src-tauri/Cargo.toml`
3. Check for errors and bump the `Cargo.lock` version number
```
cargo check --manifest-path src-tauri/Cargo.toml
```
4. Dispatch the GitHub Release workflow and wait
5. Add release notes to the generated GitHub release and publish it

0 comments on commit 96377cc

Please sign in to comment.