From 476c013766033e231cff35d10717ceed5edf43e3 Mon Sep 17 00:00:00 2001 From: ZHANG Yuntian Date: Thu, 9 Jan 2025 11:06:45 +0000 Subject: [PATCH] feat: keep the latest Pages artifact --- .../.github/workflows/update.yaml.jsonnet | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/share/rsdk/infra-repo/.github/workflows/update.yaml.jsonnet b/src/share/rsdk/infra-repo/.github/workflows/update.yaml.jsonnet index 1c8784c..0b5b1c3 100644 --- a/src/share/rsdk/infra-repo/.github/workflows/update.yaml.jsonnet +++ b/src/share/rsdk/infra-repo/.github/workflows/update.yaml.jsonnet @@ -153,6 +153,26 @@ function( popd |||, }, + { + name: "Download Pages artifact", + uses: "actions/download-artifact@v4", + with: { + name: "github-pages", + }, + }, + { + name: "Release Pages artifact", + "if": "steps.deploy.outcome == 'success'", + uses: "softprops/action-gh-release@v2", + with: { + tag_name: "github-pages", + body: "Rolling Pages artifact", + files: "artifact.tar", + draft: false, + prerelease: false, + token: "${{ secrets.GITHUB_TOKEN }}", + }, + }, ], }, },