Skip to content

Commit

Permalink
ci: add note about clearing the cache
Browse files Browse the repository at this point in the history
I found the artifacts created to have incorrect version numbers;
clearing the Actions cache should resolve this.
  • Loading branch information
abrown committed Apr 6, 2023
1 parent 2345285 commit 95af0b8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/{}
```

0 comments on commit 95af0b8

Please sign in to comment.