File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - master
7+ tags :
8+ - ' v*'
79 pull_request :
810 branches :
911 - master
3032 cp 渔人的直感/Wav/* temp_artifact/
3133
3234 - name : Upload artifacts
35+ if : github.event_name != 'push' || !startsWith(github.ref, 'refs/tags/v')
3336 uses : actions/upload-artifact@v4 # 更新为 v4
3437 with :
3538 name : FishersIntuition
3639 path : temp_artifact/*
40+
41+ - name : Zip release files
42+ if : startsWith(github.ref, 'refs/tags/v')
43+ run : powershell Compress-Archive -Path temp_artifact/* -DestinationPath FishersIntuition-${{ github.ref_name }}.zip
44+
45+ - name : Create GitHub Release
46+ if : startsWith(github.ref, 'refs/tags/v')
47+ uses : softprops/action-gh-release@v2
48+ with :
49+ name : " 渔人的直感 ${{ github.ref_name }}"
50+ tag_name : ${{ github.ref_name }}
51+ files : FishersIntuition-${{ github.ref_name }}.zip
52+ env :
53+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments