Skip to content

Commit 95af0b8

Browse files
committed
ci: add note about clearing the cache
I found the artifacts created to have incorrect version numbers; clearing the Actions cache should resolve this.
1 parent 2345285 commit 95af0b8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

RELEASING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ To publish a new version of `wasi-sdk` as a GitHub release:
55
1. Tag a commit with an annotated tag. Note that this must be an annotated tag,
66
not a lightweight tag, so that `version.sh` can use it for calculating the
77
package version (use `git show wasi-sdk-...` to show other tag messages).
8+
Note that you may need to clear the repository cache to avoid problems with
9+
cached artifacts [^cache].
810

911
```shell script
1012
TAG=wasi-sdk-1
@@ -53,3 +55,11 @@ To publish a new version of `wasi-sdk` as a GitHub release:
5355
6. Publish the release; the previous step only creates a draft. Follow the link
5456
in the previous step or navigate to the GitHub [releases] to review the
5557
description, commit, tag, and assets before clicking "Publish"
58+
59+
[^cache]: Here is an example of how to clear a cache with the GitHub CLI:
60+
61+
```shell script
62+
URL=/repos/WebAssembly/wasi-sdk/actions/caches
63+
gh api $URL -q '.actions_caches[].id' \
64+
| xargs -I {} gh api --method DELETE $URL/{}
65+
```

0 commit comments

Comments
 (0)