Fix release workflow - create tag and release in same workflow run, bump to 4.10.5
Some checks failed
Build / check-version (push) Successful in 3s
Build / build-linux (push) Failing after 5m9s
Build / build-windows (push) Has started running
Build / build-android (push) Has been cancelled
Build / create-release (push) Has been cancelled

This commit is contained in:
2026-01-24 05:25:14 +11:00
parent 890b060ab4
commit 0fd03b8496
2 changed files with 13 additions and 21 deletions

View File

@@ -40,22 +40,6 @@ jobs:
echo "Tag v$VERSION does not exist, will create release" echo "Tag v$VERSION does not exist, will create release"
echo "should_release=true" >> $GITHUB_OUTPUT echo "should_release=true" >> $GITHUB_OUTPUT
fi 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: build-windows:
runs-on: windows runs-on: windows
@@ -350,21 +334,28 @@ jobs:
create-release: create-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build-windows, build-linux, build-android] needs: [check-version, build-windows, build-linux, build-android]
if: startsWith(github.ref, 'refs/tags/v') if: needs.check-version.outputs.should_release == 'true'
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 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 - name: Download all artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
path: artifacts path: artifacts
- name: Get version from tag - name: Get version
id: 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 - name: Create update.json
run: | run: |
@@ -400,6 +391,7 @@ jobs:
- name: Create Release - name: Create Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
tag_name: v${{ needs.check-version.outputs.version }}
files: release-files/* files: release-files/*
draft: false draft: false
prerelease: false prerelease: false

View File

@@ -1,7 +1,7 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "Cinny", "productName": "Cinny",
"version": "4.10.3", "version": "4.10.5",
"identifier": "in.cinny.app", "identifier": "in.cinny.app",
"build": { "build": {
"frontendDist": "../cinny/dist", "frontendDist": "../cinny/dist",