@@ -124,18 +124,11 @@ jobs:
124124 name : setup
125125 path : build/Ninja-*.exe
126126
127- deploy :
127+ draft_release :
128128 runs-on : ubuntu-latest
129129 needs : setup
130130 if : startsWith(github.ref, 'refs/tags/')
131131 steps :
132- - name : Fetch build results
133- uses : actions/cache/restore@v4
134- with :
135- enableCrossOsArchive : true
136- fail-on-cache-miss : true
137- path : build
138- key : results-${{ github.run_id }}-${{ github.run_attempt }}
139132 - name : Draft release
140133 if : startsWith(github.ref, 'refs/tags/')
141134 run : |
@@ -145,46 +138,13 @@ jobs:
145138 echo "VERSION=${tag/v/}" >> $GITHUB_ENV
146139 echo "CHANGELOGID=${changelogid}" >> $GITHUB_ENV
147140 notes="<!-- <div align=\"center\"><table width=\"100%\"><td><b>⚠ This version is outdated. Please use the <a href=\"https://github.com/szapp/Ninja/releases/latest\">lastest version</a> instead. ⚠ </b></td></table></div> -->"$'\n\n'"- [Change log](https://github.com/szapp/Ninja/wiki/Changelog#$changelogid)"$'\n'"- [Installation instructions](https://github.com/szapp/Ninja/wiki/Installation-(EN)#wiki-wrapper)"$'\n'"- [Check sums](https://github.com/szapp/Ninja/wiki/Checksums#wiki-wrapper)"$'\n\n'"<a href=\"https://ko-fi.com/szapp\"><img src=\"https://github.com/szapp/GothicFreeAim/assets/20203034/49fbc81a-69b2-4ee2-bfcb-eae746546894\" alt=\"\" height=\"12pt\" /></a>"
148- gh release create $tag -R ${{ github.repository }} -d --verify-tag --title "Ninja ${tag/v/}" --notes "$notes" build/Ninja-*.exe || echo "::error title=Release failed::Could not draft release for tag $tag"
141+ gh release create $tag -R ${{ github.repository }} -d --verify-tag --title "Ninja ${tag/v/}" --notes "$notes" || echo "::error title=Release failed::Could not draft release for tag $tag"
149142 env :
150143 GITHUB_TOKEN : ${{ secrets.PAT }}
151- - name : Prepare Steam workshop upload
152- run : |
153- mkdir -p content/System
154- cp build/*.dll content/System/
155- curl -sLO https://github.com/user-attachments/files/15592985/BugslayerUtilG.zip
156- unzip BugslayerUtilG.zip -d content/System/
157- rm BugslayerUtilG.zip
158- - name : Update in Gothic 1 Steam workshop
159- if : startsWith(github.ref, 'refs/tags/')
160- uses : m00nl1ght-dev/steam-workshop-deploy@v3
161- with :
162- username : ${{ secrets.STEAM_USERNAME }}
163- configVdf : ${{ secrets.STEAM_CONFIG_VDF }}
164- path : content
165- appId : 65540
166- publishedFileId : 2786936496
167- changeNote : |
168- Version ${{ env.VERSION }}
169-
170- https://github.com/szapp/Ninja/wiki/Changelog#${{ env.CHANGELOGID }}
171- - name : Update in Gothic 2 Steam workshop
172- if : startsWith(github.ref, 'refs/tags/')
173- uses : m00nl1ght-dev/steam-workshop-deploy@v3
174- with :
175- username : ${{ secrets.STEAM_USERNAME }}
176- configVdf : ${{ secrets.STEAM_CONFIG_VDF }}
177- path : content
178- appId : 39510
179- publishedFileId : 2786910489
180- changeNote : |
181- Version ${{ env.VERSION }}
182-
183- https://github.com/szapp/Ninja/wiki/Changelog#${{ env.CHANGELOGID }}
184144
185145 cleanup :
186146 runs-on : ubuntu-latest
187- needs : deploy
147+ needs : setup
188148 if : ${{ !cancelled() }}
189149 permissions :
190150 actions : write
0 commit comments