Skip to content

I guess no secret masking #5

I guess no secret masking

I guess no secret masking #5

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
push:
tags-ignore:
- '**'
branches:
- '**'
jobs:
build:
env:
condition: ${{ secrets.CLOUDFLARE_API_TOKEN }}
if: ${{ env.condition != '' }}

Check failure on line 14 in .github/workflows/preview.yml

View workflow run for this annotation

GitHub Actions / Deploy to Cloudflare Pages

Invalid workflow file

The workflow is not valid. .github/workflows/preview.yml (Line: 14, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.condition != ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install packages
run: npm install
- name: Build with NPM
run: npm run build
- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: "pridecraft-website"
directory: build/