Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,45 +16,13 @@ jobs:
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
pr: ${{ steps.release.outputs.pr }}
steps:
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

sync-cargo-lock:
name: Sync Cargo.lock into release PR
needs: release-please
# Runs when release-please opened/updated a PR but has not yet created a release
if: ${{ !needs.release-please.outputs.release_created && needs.release-please.outputs.pr }}
runs-on: ubuntu-latest
steps:
- name: Checkout release PR branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ fromJSON(needs.release-please.outputs.pr).headBranchName }}

- name: Install stable Rust toolchain
run: rustup toolchain install stable --no-self-update

- name: Update Cargo.lock for thuki package
working-directory: src-tauri
run: cargo update --package thuki

- name: Commit Cargo.lock if it changed
run: |
if ! git diff --quiet src-tauri/Cargo.lock; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add src-tauri/Cargo.lock
git commit -m "chore: sync Cargo.lock to version bump"
git push
else
echo "Cargo.lock already in sync, nothing to commit"
fi

build-and-release:
name: Build and publish macOS app
needs: release-please
Expand Down