Skip to content

Removed bulletins (hyphens) #18

Removed bulletins (hyphens)

Removed bulletins (hyphens) #18

---
name: Build and Deploy The Cornucopia Website on Production
on:
push:
branches: [master]
paths:
- 'cornucopia.owasp.org/**'
permissions:
contents: read
jobs:
if: false

Check failure on line 11 in .github/workflows/deploy-production.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy-production.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
hardening:
name: Hardening
runs-on: ubuntu-latest
steps:
# Make sure we have some code to test
- name: Harden runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github-cloud.githubusercontent.com:443
github.com:443
motd.ubuntu.com:443
keys.openpgp.org:443
build-and-deploy-production:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
name: Install pnpm
with:
version: 10.0.0
run_install: false
- name: Install Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20.18.2
- name: Build
working-directory: cornucopia.owasp.org
run: |
pnpm install # Install dependencies
npm run build # Build production version
- name: Deploy the website
uses: cloudflare/wrangler-action@7a5f8bbdfeedcde38e6777a50fe685f89259d4ca
with:
workingDirectory: "cornucopia.owasp.org"
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
wranglerVersion: "3.105.1"
command: pages deploy build --project-name=cornucopia
- name: Deploy the worker routes
uses: cloudflare/wrangler-action@7a5f8bbdfeedcde38e6777a50fe685f89259d4ca
with:
workingDirectory: "cornucopia.owasp.org"
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
wranglerVersion: "3.105.1"
command: deploy script/nonce-worker.js --config script/wrangler.toml --env production