Skip to content

Remove node-fetch (#6) #31

Remove node-fetch (#6)

Remove node-fetch (#6) #31

Workflow file for this run

name: Eleventy Build on Push
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/iron'
cache: 'npm'
- run: npm ci
- run: npx eleventy
- name: upload files
uses: actions/upload-pages-artifact@v2
with:
path: dist
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3 # or the latest "vX.X.X" version tag for this action