9292 cd "${ARTIFACT_NAME}"
9393 zip -r "../${ARTIFACT_NAME}.zip" .
9494 cd ..
95+ #
9596 - name : " Upload artifact"
9697 uses : actions/upload-artifact@v4
9798 with :
@@ -154,6 +155,7 @@ jobs:
154155 # ######### Action
155156 - name : " Build"
156157 run : cargo build --release --locked --target ${{ matrix.target }}
158+ #
157159 - name : " Pack artifact"
158160 shell : powershell
159161 working-directory : ${{ github.workspace }}
@@ -166,6 +168,7 @@ jobs:
166168 Copy-Item -Path "target\${{ matrix.target }}\release\${{ env.PROJECT_NAME }}.exe" -Destination "$ARTIFACT_NAME"
167169 Copy-Item -Path "README.md", "$LICENSE_FILE" -Destination "$ARTIFACT_NAME"
168170 Compress-Archive -Path "$ARTIFACT_NAME\*" -Destination "$ARTIFACT_NAME.zip"
171+ #
169172 - name : " Upload artifact"
170173 uses : actions/upload-artifact@v4
171174 with :
@@ -175,6 +178,7 @@ jobs:
175178 compression-level : ' 9'
176179 # overwrite: 'true'
177180 draft :
181+ name : " Draft - draft"
178182 if : startsWith(github.ref, 'refs/tags/')
179183 permissions :
180184 contents : write
@@ -185,7 +189,8 @@ jobs:
185189 - name : " Checkout sources"
186190 uses : actions/checkout@v4
187191 #
188- - uses : actions/download-artifact@v4
192+ - name : " Download artifacts"
193+ uses : actions/download-artifact@v4
189194 id : artifact-download-step
190195 with :
191196 merge-multiple : true
@@ -203,6 +208,7 @@ jobs:
203208 # body_path: ${{ github.workspace }}-CHANGELOG.txt ## For adding changelog content
204209
205210 nightly :
211+ name : " Draft - nightly"
206212 if : ${{ !startsWith(github.ref, 'refs/tags/') }}
207213 permissions :
208214 contents : write
@@ -214,16 +220,22 @@ jobs:
214220 echo "From commit: ${GITHUB_SHA:0:8}" >> $GITHUB_ENV
215221 echo "Generated on: $(date -u +"%Y-%m-%d %H:%M") UTC" >> $GITHUB_ENV
216222 echo "EOF" >> $GITHUB_ENV
217- - uses : actions/checkout@v4
218- - uses : actions/download-artifact@v4
223+ #
224+ - name : " Checkout sources"
225+ uses : actions/checkout@v4
226+ #
227+ - name : " Download artifacts"
228+ uses : actions/download-artifact@v4
219229 with :
220230 merge-multiple : true
231+ #
221232 - name : " Update the tag"
222233 run : |
223234 git config user.name "github-actions[bot]"
224235 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
225236 git tag --force nightly && git push --force origin tag nightly
226- - name : " Nightly"
237+ #
238+ - name : " Realse Nightly"
227239 uses : softprops/action-gh-release@v2
228240 with :
229241 tag_name : nightly
0 commit comments