From 0fd03b849694c31f4fdab904919d67e3256d69d3 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Sat, 24 Jan 2026 05:25:14 +1100 Subject: [PATCH] Fix release workflow - create tag and release in same workflow run, bump to 4.10.5 --- .gitea/workflows/build.yml | 32 ++++++++++++-------------------- src-tauri/tauri.conf.json | 2 +- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 00d751c..6dfcb2b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -40,22 +40,6 @@ jobs: echo "Tag v$VERSION does not exist, will create release" echo "should_release=true" >> $GITHUB_OUTPUT fi - - create-tag: - runs-on: ubuntu-latest - needs: check-version - if: needs.check-version.outputs.should_release == 'true' - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Create and push tag - run: | - git config user.name "GitHub Actions" - git config user.email "actions@github.com" - git tag -a "v${{ needs.check-version.outputs.version }}" -m "Release v${{ needs.check-version.outputs.version }}" - git push origin "v${{ needs.check-version.outputs.version }}" build-windows: runs-on: windows @@ -350,21 +334,28 @@ jobs: create-release: runs-on: ubuntu-latest - needs: [build-windows, build-linux, build-android] - if: startsWith(github.ref, 'refs/tags/v') + needs: [check-version, build-windows, build-linux, build-android] + if: needs.check-version.outputs.should_release == 'true' steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Create and push tag + run: | + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + git tag -a "v${{ needs.check-version.outputs.version }}" -m "Release v${{ needs.check-version.outputs.version }}" + git push origin "v${{ needs.check-version.outputs.version }}" + - name: Download all artifacts uses: actions/download-artifact@v3 with: path: artifacts - - name: Get version from tag + - name: Get version id: version - run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT + run: echo "VERSION=${{ needs.check-version.outputs.version }}" >> $GITHUB_OUTPUT - name: Create update.json run: | @@ -400,6 +391,7 @@ jobs: - name: Create Release uses: softprops/action-gh-release@v1 with: + tag_name: v${{ needs.check-version.outputs.version }} files: release-files/* draft: false prerelease: false diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index c96f348..654530a 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Cinny", - "version": "4.10.3", + "version": "4.10.5", "identifier": "in.cinny.app", "build": { "frontendDist": "../cinny/dist",