Skip to content

Fix gh action permissions #3

Fix gh action permissions

Fix gh action permissions #3

Workflow file for this run

name: Build & Deploy
on:
push:
branches: ['main']
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 21
cache: 'npm'
- name: Install packages
run: npm ci
- name: Run npm build
run: DEBUG=* npx eleventy
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Deploy to gh-pages
uses: actions/deploy-pages@v4