-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
71 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,58 +50,58 @@ jobs: | |
# (required) | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
publish-tauri: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: install Rust stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: install webkit2gtk and | ||
sudo apt-get install -y webkit2gtk-4.0 libappindicator3 (ubuntu only) | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev | ||
- name: Get Changelog Entry | ||
id: changelog_reader | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
version: ${{ steps.tag_name.outputs.current_version }} | ||
path: CHANGELOG.md | ||
- uses: pnpm/[email protected] | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: 8 | ||
run_install: false | ||
# publish-tauri: | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# platform: [macos-latest, ubuntu-latest, windows-latest] | ||
# runs-on: ${{ matrix.platform }} | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: setup node | ||
# uses: actions/setup-node@v1 | ||
# with: | ||
# node-version: 12 | ||
# - name: install Rust stable | ||
# uses: actions-rs/toolchain@v1 | ||
# with: | ||
# toolchain: stable | ||
# - name: install webkit2gtk and | ||
# sudo apt-get install -y webkit2gtk-4.0 libappindicator3 (ubuntu only) | ||
# if: matrix.platform == 'ubuntu-latest' | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get install -y webkit2gtk-4.0 libayatana-appindicator3-dev | ||
# - name: Get Changelog Entry | ||
# id: changelog_reader | ||
# uses: mindsers/changelog-reader-action@v2 | ||
# with: | ||
# version: ${{ steps.tag_name.outputs.current_version }} | ||
# path: CHANGELOG.md | ||
# - uses: pnpm/[email protected] | ||
# name: Install pnpm | ||
# id: pnpm-install | ||
# with: | ||
# version: 8 | ||
# run_install: false | ||
|
||
- uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
# TODO: https://github.com/atomicdata-dev/atomic-server/issues/237 | ||
# ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }} | ||
# APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | ||
# APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | ||
# APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_IDENTITY_ID }} | ||
# APPLE_ID: ${{ secrets.APPLE_ID }} | ||
# APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | ||
with: | ||
tagName: ${{ steps.changelog_reader.outputs.version }} | ||
releaseName: ${{ steps.changelog_reader.outputs.version }} | ||
releaseBody: ${{ steps.changelog_reader.outputs.changes }} | ||
releaseDraft: ${{ steps.changelog_reader.outputs.status == 'unreleased' }} | ||
prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }} | ||
# - uses: tauri-apps/tauri-action@v0 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | ||
# # TODO: https://github.com/atomicdata-dev/atomic-server/issues/237 | ||
# # ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }} | ||
# # APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | ||
# # APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | ||
# # APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_IDENTITY_ID }} | ||
# # APPLE_ID: ${{ secrets.APPLE_ID }} | ||
# # APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | ||
# with: | ||
# tagName: ${{ steps.changelog_reader.outputs.version }} | ||
# releaseName: ${{ steps.changelog_reader.outputs.version }} | ||
# releaseBody: ${{ steps.changelog_reader.outputs.changes }} | ||
# releaseDraft: ${{ steps.changelog_reader.outputs.status == 'unreleased' }} | ||
# prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }} | ||
|
||
upload-assets: | ||
strategy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,9 +199,8 @@ So please first send an e-mail to [email protected] describing the issue, and then | |
## Releases, Versioning and Tagging | ||
|
||
1. Commit changes | ||
2. Update the `tauri.conf.json` manually to the new version. | ||
3. Make sure all tests run properly | ||
4. Use `cargo workspaces version patch` (and maybe replace `patch` with the `minor`) to update all `cargo.toml` files in one command. You'll need to `cargo install cargo-workspaces` if this command is not possible. | ||
1. Make sure all tests run properly | ||
1. Use `cargo workspaces version patch` (and maybe replace `patch` with the `minor`) to update all `cargo.toml` files in one command. You'll need to `cargo install cargo-workspaces` if this command is not possible. | ||
|
||
The following should be triggered automatically: | ||
|
||
|
@@ -212,7 +211,6 @@ Note: | |
|
||
- We use [semver](https://semver.org/), and are still quite far from 1.0.0. | ||
- The version for `atomic-lib` is the most important, and dictates the versions of `cli` and `server`. When `lib` changes minor version, `cli` and `server` should follow. | ||
- After publishing, update the `./desktop/latest-version.json` file. This is used for auto-updating desktop distributions. See [tauri docs](https://tauri.studio/docs/distribution/updater). | ||
|
||
### CI situation | ||
|
||
|
@@ -226,8 +224,7 @@ If the CI scripts for some reason do not do their job (buildin releases, docker | |
#### Building and publishing binaries | ||
|
||
1. `cargo build --release` | ||
2. `cargo tauri build` (on every OS!) | ||
3. Create a release on github, add the binaries and tauri builds | ||
1. Create a release on github, add the binaries | ||
|
||
#### Publishing to Cargo | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters