Skip to content

build-deploy-to-pages #2

build-deploy-to-pages

build-deploy-to-pages #2

Workflow file for this run

name: build-deploy-to-pages
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: npm install and build
run: |
npm install
npm run build
- name: Upload artifacts
uses: actions/upload-pages-artifact@v2
with:
path: build
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2