Skip to content

Commit

Permalink
Add tauri action
Browse files Browse the repository at this point in the history
  • Loading branch information
probablykasper committed Aug 28, 2021
1 parent 9a9bde3 commit 444d697
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release
on:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
release:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, 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 && 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## 0.1.0 - 2021 Aug 28
- Initial release
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,13 @@ Supported file formats
- `npm run dev`: Start app in dev mode
- `npm run build`: Build
- `npm run lint`: Lint

### 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 444d697

Please sign in to comment.