Fix release workflow - create tag and release in same workflow run, bump to 4.10.5
This commit is contained in:
@@ -41,22 +41,6 @@ jobs:
|
||||
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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user