Skip to content

test: Update deploy.yml #7

test: Update deploy.yml

test: Update deploy.yml #7

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- test-structure # Trigger on pushes to the 'test-structure' branch
permissions:
id-token: write
contents: read # Required for actions/checkout@v4
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20' # Install the specified Node.js version
- name: Install dependencies
run: npm ci
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ./
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}