Skip to content

Commit bcc2132

Browse files
committed
Update github actions
1 parent 275f115 commit bcc2132

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/cmake.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: windows-latest
2020

2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323

2424
- name: Setup zlib
2525
shell: pwsh
@@ -28,7 +28,7 @@ jobs:
2828
2929
- name: Cache qt static build
3030
id: cache-qt-static-build
31-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3232
with:
3333
path: Qt6Static
3434
key: ${{ runner.os }}-Qt6Static
@@ -49,16 +49,22 @@ jobs:
4949
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
5050

5151
- name: Upload
52-
uses: actions/upload-artifact@v3
52+
uses: actions/upload-artifact@v4
5353
with:
5454
name: CFGEditorPlusPlus
5555
path: ${{github.workspace}}/build/Release/CFGEditorPlusPlus.exe
5656

57+
- name: Move artifact
58+
shell: pwsh
59+
if: startsWith(github.ref, 'refs/tags')
60+
run: |
61+
Move-Item -Path ${{github.workspace}}/build/Release/CFGEditorPlusPlus.exe -Destination ${{github.workspace}}/CFGEditorPlusPlus.exe
62+
5763
- name: Release
58-
uses: softprops/action-gh-release@v1
64+
uses: softprops/action-gh-release@v2
5965
if: startsWith(github.ref, 'refs/tags')
6066
with:
6167
generate_release_notes: true
6268
prerelease: true
63-
files: ${{github.workspace}}/build/Release/CFGEditorPlusPlus.exe
69+
files: CFGEditorPlusPlus.exe
6470

0 commit comments

Comments
 (0)