Skip to content
trash-2

GitHub Action

Purge Stackpath CDN

v0.1.1 Latest version

Purge Stackpath CDN

trash-2

Purge Stackpath CDN

Purge files from a Stackpath CDN with credentials

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Purge Stackpath CDN

uses: GrandPoohBear/stackpath-cdn-purge-action@v0.1.1

Learn more about this action in GrandPoohBear/stackpath-cdn-purge-action

Choose a version

stackpath-cdn-purge-action

Purge files from a StackPath CDN

Latest Release

Purges are requested with the recursive flag, so you can ask for either a single file or an entire directory to be purged.

Example:

  - name: Purge old deploy from CDN
    uses: GrandPoohBear/stackpath-cdn-purge-action@v0.1.1
    with:
      clientId: ${{ secrets.STACKPATH_CLIENT_ID }}
      clientSecret: ${{ secrets.STACKPATH_CLIENT_SECRET }}
      stackId: my-default-stack-49218a
      url: https://purge.example.com/