From 04d8bffd433c4124b156c30d5896028ccd3cbdf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:32:11 +0200 Subject: [PATCH 1/4] Update release workflow Instead of creating a new release for each push on main, it will only do so when a tag is present --- .github/workflows/tauri-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tauri-release.yml b/.github/workflows/tauri-release.yml index 11f4c4463..ede4eb48f 100644 --- a/.github/workflows/tauri-release.yml +++ b/.github/workflows/tauri-release.yml @@ -1,10 +1,12 @@ name: 'tauri build and release' -# This will trigger the action on each push to the `release` branch. +# This will trigger the action on each push to main branch if a tag is present on: push: branches: - main + tags: + - '*' jobs: publish-tauri: From 261156b539dbcfefaa8ea69e1665cfc9123d6f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:34:38 +0200 Subject: [PATCH 2/4] Delete check-version-bump.yml --- .github/workflows/check-version-bump.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/check-version-bump.yml diff --git a/.github/workflows/check-version-bump.yml b/.github/workflows/check-version-bump.yml deleted file mode 100644 index 91ff4f589..000000000 --- a/.github/workflows/check-version-bump.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Check Version Bump -on: - pull_request: - branches: [ "main" ] - -jobs: - check-version: - timeout-minutes: 5 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: johnnybenson/package-json-versioned-action@v1.0.5 - id: package-json - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Check if version has been updated - if: steps.package-json.outputs.has-updated == 'false' - run: | - echo "The version has not been updated" - exit 1 \ No newline at end of file From 97b1108e9bb8336d1b041c724eeecf1459dbb096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:55:59 +0200 Subject: [PATCH 3/4] fix deploy error bump nodejs version as pnpm requires at least v18 --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b1dca6a0c..ef8d3cb19 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,7 +31,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: "16" + node-version: "20" - name: Setup Pages uses: actions/configure-pages@v3 - name: Restore cache From eb3f22f1c097a3f02777de4777a29cdb5ff804d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:56:51 +0200 Subject: [PATCH 4/4] fix tauri release again only execute on new tag --- .github/workflows/tauri-release.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/tauri-release.yml b/.github/workflows/tauri-release.yml index ede4eb48f..8fc6c3def 100644 --- a/.github/workflows/tauri-release.yml +++ b/.github/workflows/tauri-release.yml @@ -3,8 +3,6 @@ name: 'tauri build and release' # This will trigger the action on each push to main branch if a tag is present on: push: - branches: - - main tags: - '*'