From 0f3879a06559d9d7d88b29506e0e878ba992763a Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Tue, 30 Apr 2024 15:59:05 +0200 Subject: [PATCH] Allow uncommited changes when publishing with release-plz (#78) * Pin to specific release-plz version * Allow uncommitted changes for release-plz --- .github/workflows/publish-tauri.yml | 10 +++++----- .github/workflows/release.yml | 2 +- .github/workflows/test-on-pr-desktop.yml | 2 +- .github/workflows/test-on-pr.yml | 2 +- Cargo.toml | 5 +++++ 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-tauri.yml b/.github/workflows/publish-tauri.yml index dab6e78f..fd9ca7cd 100644 --- a/.github/workflows/publish-tauri.yml +++ b/.github/workflows/publish-tauri.yml @@ -1,8 +1,8 @@ -name: Release +name: Publish Tauri on: push: tags: - - 'v*' + - "v*" workflow_dispatch: jobs: @@ -27,13 +27,13 @@ jobs: - name: install Rust stable uses: dtolnay/rust-toolchain@stable - + - name: install dependencies (ubuntu only) if: matrix.platform == 'ubuntu-20.04' run: | sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev - + - name: install frontend dependencies run: yarn install # change this to npm or pnpm depending on which one you use working-directory: ${{env.working-directory}} @@ -47,4 +47,4 @@ jobs: releaseBody: "See the assets to download this version and install." releaseDraft: true prerelease: false - projectPath: ${{env.working-directory}} \ No newline at end of file + projectPath: ${{env.working-directory}} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8a55472..a7ed5eaf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release-plz +name: Release permissions: pull-requests: write diff --git a/.github/workflows/test-on-pr-desktop.yml b/.github/workflows/test-on-pr-desktop.yml index 58202cda..d01f5d92 100644 --- a/.github/workflows/test-on-pr-desktop.yml +++ b/.github/workflows/test-on-pr-desktop.yml @@ -1,4 +1,4 @@ -name: "Test on PR for Desktop" +name: Test Tauri on: [pull_request] diff --git a/.github/workflows/test-on-pr.yml b/.github/workflows/test-on-pr.yml index 56e619c4..7708cd36 100644 --- a/.github/workflows/test-on-pr.yml +++ b/.github/workflows/test-on-pr.yml @@ -1,4 +1,4 @@ -name: "Test on PR with Earthly" +name: Test with Earthly on: [pull_request] env: diff --git a/Cargo.toml b/Cargo.toml index f73c88c9..73b198d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,3 +2,8 @@ resolver = "2" members = ["crates/*", "terraphim_server", "desktop/src-tauri"] default-members = ["terraphim_server"] + +# CI build creates artifacts that are not part of the repo +# Allow to publish with release-plz even if there are uncommitted changes +# See https://github.com/MarcoIeni/release-plz/issues/1360 +allow_dirty = true