From 95af0b8ec2c3c65d66e42cb17f18a9c0d10aeff5 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 30 Mar 2023 08:24:42 +0200 Subject: [PATCH] ci: add note about clearing the cache I found the artifacts created to have incorrect version numbers; clearing the Actions cache should resolve this. --- RELEASING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/RELEASING.md b/RELEASING.md index 80f7b6e6b..8c65cc8e8 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -5,6 +5,8 @@ To publish a new version of `wasi-sdk` as a GitHub release: 1. Tag a commit with an annotated tag. Note that this must be an annotated tag, not a lightweight tag, so that `version.sh` can use it for calculating the package version (use `git show wasi-sdk-...` to show other tag messages). + Note that you may need to clear the repository cache to avoid problems with + cached artifacts [^cache]. ```shell script TAG=wasi-sdk-1 @@ -53,3 +55,11 @@ To publish a new version of `wasi-sdk` as a GitHub release: 6. Publish the release; the previous step only creates a draft. Follow the link in the previous step or navigate to the GitHub [releases] to review the description, commit, tag, and assets before clicking "Publish" + +[^cache]: Here is an example of how to clear a cache with the GitHub CLI: + + ```shell script + URL=/repos/WebAssembly/wasi-sdk/actions/caches + gh api $URL -q '.actions_caches[].id' \ + | xargs -I {} gh api --method DELETE $URL/{} + ```