Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Deploy (w/ npm)

Deploy (w/ npm) #1

Workflow file for this run

name: Deploy (w/ npm)
on:
workflow_dispatch:
# pull_request:
# push:
# branches:
# - main
jobs:
build-and-deploy:
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
url: "https://miguelpimentel.do/eleventy-garden"
concurrency:
group: "pages"
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm i
- name: Build
run: npm run build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
- name: Deploy to GH Pages
uses: actions/deploy-pages@v4