mirror of
https://github.com/yeongpin/cursor-free-vip.git
synced 2025-08-03 13:07:35 +08:00
Update build.yml to bump version to 1.8.09 and remove changelog extraction step from release process
This commit is contained in:
parent
6cb3ad79af
commit
12d46d5f18
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
version:
|
version:
|
||||||
description: 'Version number (e.g. 1.0.9)'
|
description: 'Version number (e.g. 1.0.9)'
|
||||||
required: true
|
required: true
|
||||||
default: '1.8.08'
|
default: '1.8.09'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -228,30 +228,10 @@ jobs:
|
|||||||
echo "Contents of subdirectories:"
|
echo "Contents of subdirectories:"
|
||||||
ls -la */
|
ls -la */
|
||||||
|
|
||||||
- name: Extract changelog for current version
|
|
||||||
id: get_changelog
|
|
||||||
run: |
|
|
||||||
# Extract changelog for current version
|
|
||||||
CHANGELOG_CONTENT=$(awk -v ver="v${{ env.VERSION }}" '
|
|
||||||
BEGIN { found=0; content=""; }
|
|
||||||
/^## v[0-9]+\.[0-9]+\.[0-9]+/ {
|
|
||||||
if (found == 1) { exit }
|
|
||||||
if ($0 ~ ver) { found=1; next }
|
|
||||||
}
|
|
||||||
found == 1 { content = content $0 "\n" }
|
|
||||||
END { print content }
|
|
||||||
' CHANGELOG.md)
|
|
||||||
|
|
||||||
# Save changelog content to environment variable
|
|
||||||
echo 'CHANGELOG_CONTENT<<EOF' >> $GITHUB_ENV
|
|
||||||
echo "$CHANGELOG_CONTENT" >> $GITHUB_ENV
|
|
||||||
echo 'EOF' >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ env.VERSION }}
|
tag_name: v${{ env.VERSION }}
|
||||||
name: Release v${{ env.VERSION }}
|
|
||||||
files: |
|
files: |
|
||||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_windows.exe/CursorFreeVIP_${{ env.VERSION }}_windows.exe
|
artifacts/CursorFreeVIP_${{ env.VERSION }}_windows.exe/CursorFreeVIP_${{ env.VERSION }}_windows.exe
|
||||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_mac_arm64/CursorFreeVIP_${{ env.VERSION }}_mac_arm64
|
artifacts/CursorFreeVIP_${{ env.VERSION }}_mac_arm64/CursorFreeVIP_${{ env.VERSION }}_mac_arm64
|
||||||
@ -260,9 +240,5 @@ jobs:
|
|||||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_mac_intel/CursorFreeVIP_${{ env.VERSION }}_mac_intel
|
artifacts/CursorFreeVIP_${{ env.VERSION }}_mac_intel/CursorFreeVIP_${{ env.VERSION }}_mac_intel
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
body: |
|
|
||||||
# Release v${{ env.VERSION }}
|
|
||||||
|
|
||||||
${{ env.CHANGELOG_CONTENT }}
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user