Skip to content

Put the dev stuff where it belongs #3

Put the dev stuff where it belongs

Put the dev stuff where it belongs #3

Workflow file for this run

name: Deploy Website
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
env:
REPO_NAME: /${{github.event.repository.name}}
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install and Build
run: |
npm ci
npm run build
- name: Configure Github Pages
uses: actions/configure-pages@v3
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./out
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Deploy to github pages
id: deployment
uses: actions/deploy-pages@v2