Skip to content

Create build-deploy-action.yaml #1

Create build-deploy-action.yaml

Create build-deploy-action.yaml #1

name: CI
on:
push:
branches: ['master']
pull_request:
branches: ['master']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '22.11.0'
- run: npm ci
- run: npm run build --if-present
deploy:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2