Skip to content

quantcdn/purge-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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'