Skip to content

Merge pull request #1895 from git/ttaylorr/purge-cloudflare-cache-not… #57

Merge pull request #1895 from git/ttaylorr/purge-cloudflare-cache-not…

Merge pull request #1895 from git/ttaylorr/purge-cloudflare-cache-not… #57

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- gh-pages
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to GitHub Pages
id-token: write # to verify that the deployment source is legit
issues: write # to open tickets upon broken links
environment:
name: github-pages
url: ${{ steps.deploy.outputs.url }}
steps:
- uses: actions/checkout@v4
- name: deploy to GitHub Pages
id: deploy
uses: ./.github/actions/deploy-to-github-pages
- name: Purge Cloudflare cache
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
if: env.CLOUDFLARE_TOKEN != ''
uses: jakejarvis/[email protected]
env:

Check failure on line 29 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 29, Col: 9): 'env' is already defined
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}