mirror of
https://github.com/yeongpin/cursor-free-vip.git
synced 2025-08-02 20:47:35 +08:00
build.yml update
This commit is contained in:
parent
53ab15604e
commit
1e290d0417
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@ -162,36 +162,24 @@ jobs:
|
||||
steps:
|
||||
- name: Get version
|
||||
shell: bash
|
||||
run: |
|
||||
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
||||
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
|
||||
else
|
||||
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
||||
fi
|
||||
run: echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
- name: Prepare release files
|
||||
run: |
|
||||
cd artifacts
|
||||
mv CursorFreeVIP_${{ env.VERSION }}_windows.exe/* .
|
||||
mv CursorFreeVIP_${{ env.VERSION }}_mac_arm64/* .
|
||||
mv CursorFreeVIP_${{ env.VERSION }}_linux/* .
|
||||
mv CursorFreeVIP_${{ env.VERSION }}_mac_intel/* .
|
||||
rm -rf CursorFreeVIP_${{ env.VERSION }}_*/*
|
||||
|
||||
- name: List files
|
||||
run: ls -R artifacts/
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: |
|
||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_windows.exe
|
||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_mac_arm64
|
||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_linux
|
||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_mac_intel
|
||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_windows.exe/CursorFreeVIP.exe
|
||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_mac_arm64/CursorFreeVIP
|
||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_linux/CursorFreeVIP
|
||||
artifacts/CursorFreeVIP_${{ env.VERSION }}_mac_intel/CursorFreeVIP
|
||||
draft: false
|
||||
prerelease: false
|
||||
env:
|
||||
|
Loading…
x
Reference in New Issue
Block a user