Purges the helix pages cache on push.
Required A github token to issue the dummy commit.
Optional Base url of the helix pages instance. Uses
ref--repo--owner.hlx.page
by default.
Add a yaml file with the following contents inside .github/workflows, as described in github actions quick start.
on: push
jobs:
ci_trigger:
runs-on: ubuntu-latest
name: Clear helix pages cache
steps:
- name: Trigger
id: trigger
uses: adobe-rnd/github-purge-cache-action@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Please run the build script before release to regenerate dist/index.html
$ npm run build
$ git commit -am "..."
$ git push