CI: Remove used artifact in background

This commit is contained in:
SukkaW
2026-06-27 21:53:41 +08:00
parent 79545a3a6b
commit 689dc2e2ac

View File

@@ -175,6 +175,11 @@ jobs:
id: deploy_marker id: deploy_marker
run: | run: |
echo "marker_file=deploy-check-${GITHUB_SHA}-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}.txt" >> $GITHUB_OUTPUT echo "marker_file=deploy-check-${GITHUB_SHA}-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}.txt" >> $GITHUB_OUTPUT
- name: Remove build artifact
uses: geekyeggo/delete-artifact@v6
background: true
with:
name: build-artifact-${{ github.sha }}-${{ github.run_number }}
# Deploy to Cloudflare, GitLab, and GitHub in parallel # Deploy to Cloudflare, GitLab, and GitHub in parallel
- name: Deploy to Cloudflare Pages - name: Deploy to Cloudflare Pages
id: deploy_cloudflare id: deploy_cloudflare
@@ -254,12 +259,3 @@ jobs:
env: env:
GH_TOKEN: ${{ secrets.GIT_TOKEN }} GH_TOKEN: ${{ secrets.GIT_TOKEN }}
- wait-all: - wait-all:
remove_artifacts:
needs:
- deploy
name: Remove Artifacts after Deployment
runs-on: ubuntu-slim
steps:
- uses: geekyeggo/delete-artifact@v6
with:
name: build-artifact-${{ github.sha }}-${{ github.run_number }}