diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..7e867e1 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..de71fe1 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,2 @@ +## 0.1.0 - 2021 Aug 28 +- Initial release diff --git a/README.md b/README.md index 1669441..4aae551 100644 --- a/README.md +++ b/README.md @@ -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