Skip to content

Purge urls from QuantCDN

Actions
An action to Purge urls from QuantCDN
v2.1.0
Latest
Star (0)

QuantCDN Purge

Purge urls accessible via QuantCDN using Github Actions.

Getting Started

To get started using the action make sure you have the standard workflow structure set up (.github/workflows) create a file called purge.yml with the following contents.

name: Deploy to QuantCDN
on:
  push:
    branches:
      - master
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      # Build the artefact or restore a cached copy.
      # - name: Build the deploy artefact
      #   run: npm run build
      - uses: quantcdn/purge-action@v2
        with:
          customer: <quant-customer-id>
          project: <quant-project-id>
          token: $({ secrets.QUANT_TOKEN })
          url_pattern: <build>

Replace the placeholders with values for your project, these can be found in the Quant dashboard.

Adding secrets

Navigate to your repositories Settings page and find Secrets. Once there click on new secret, enter QUANT_TOKEN as the secret name and paste your provided Quant API token.

You can learn more about secrets and actions.

Inputs

customer:
  description: "Your customer account name"
  required: true
project:
  description: "Your project name"
  required: true
token:
  description: "Your API token"
  required: true
dir:
  description: "The directory to deploy"
  required: true
endpoint:
  description: 'Specify the QuantCDN API endpoint'
  required: false
  default: 'https://api.quantcdn.io'

Purge urls from QuantCDN is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

An action to Purge urls from QuantCDN
v2.1.0
Latest

Purge urls from QuantCDN is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.