From 90f8fc8b4ccfd8fc23aa748445a51446d5b01819 Mon Sep 17 00:00:00 2001 From: Emily Bourke Date: Thu, 9 Jan 2025 17:39:23 +0000 Subject: [PATCH] Update use of download-artifact to v4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reading through the migration guides [for download-artifact@v4](https://github.com/actions/download-artifact/blob/main/docs/MIGRATION.md) and [for upload-artifact@v4](https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md), I don’t think we’re currently using any of the features of v3 that have been removed in v4. So I think just updating the version numbers should be sufficient. --- README.md | 6 +++--- action.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 04fdd44..6249e2c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @guardian/actions-static-site V2 +# @guardian/actions-static-site V3 Action to provision and serve a static site with Google Auth and a custom domain. @@ -33,12 +33,12 @@ jobs: # ... (Build your static site.) # Then upload it as an artifact - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: my-site # Then invoke this action (replacing app and domain) - - uses: guardian/actions-static-site@v2 + - uses: guardian/actions-static-site@v3 with: app: example domain: example.gutools.co.uk diff --git a/action.yaml b/action.yaml index 5dd3d3e..25a0747 100644 --- a/action.yaml +++ b/action.yaml @@ -35,7 +35,7 @@ runs: INPUT_DRYRUN: ${{ inputs.dryRun}} INPUT_ACTIONS_RUNTIME_TOKEN: ${ github.token } - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: ${{ inputs.artifact }} path: site