aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2026-01-13 09:38:30 +0100
committerJohn MacFarlane <[email protected]>2026-01-13 09:38:30 +0100
commitcd6788d7216e6e52512f5d74fa828f7eb3c56f16 (patch)
tree96b7761c4d80f1a821e48df7dbd4f8be9d47f7e9
parentb81b7d4cd7f4e8f1912f408b541c3442159d1275 (diff)
Delete unsigned artifact before uploading signed one.
-rw-r--r--.github/workflows/release-candidate.yml17
1 files changed, 14 insertions, 3 deletions
diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml
index 92b5e0ab3..e7c89ae1c 100644
--- a/.github/workflows/release-candidate.yml
+++ b/.github/workflows/release-candidate.yml
@@ -69,14 +69,14 @@ jobs:
mkdir windows-release-candidate
copy windows\pandoc-%VERSION%-${{ matrix.versions.osarch }}.msi windows-release-candidate
copy windows\pandoc-%VERSION%-${{ matrix.versions.osarch }}.zip windows-release-candidate
- - name: upload-unsigned-artifact
+ - name: Upload unsigned artifact
id: upload-unsigned-artifact
uses: actions/upload-artifact@v6
with:
name: windows-release-candidate-unsigned
path: windows-release-candidate
- - name: sign-artifact
+ - name: Sign artifact
id: sign-artifact
uses: signpath/github-action-submit-signing-request@v2
with:
@@ -89,11 +89,22 @@ jobs:
wait-for-completion: true
output-artifact-directory: 'windows-release-candidate'
+ - name: Delete unsigned artifact
+ id: delete-unsigned-artifact
+ uses: actions/github-script@v7
+ with:
+ script: |
+ github.rest.actions.deleteArtifact({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ artifact_id: ${{ steps.upload-unsigned-artifact.outputs.artifact-id }}
+ });
+
- name: upload-signed-artifact
id: upload-signed-artifact
uses: actions/upload-artifact@v6
with:
- name: windows-release-candidated-signed
+ name: windows-release-candidated
path: windows-release-candidate
# macos: