Skip to content

yml corrections

yml corrections #12

Workflow file for this run

name: Deploy with GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: latest
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ./dist
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout 'pages' branch
uses: actions/checkout@v4
with:
ref: 'page'
- run: rm -rf *
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: github-pages
path: ./dist
- name: Move files
run: |
cp -r dist/* .
rm -rf dist