mirror of
https://github.com/SukkaW/Surge.git
synced 2026-07-29 20:51:46 +08:00
CI: Remove used artifact in background
This commit is contained in:
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
@@ -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 }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user