Skip to content

Adding changes to GH Actions and updated Astro #3

Adding changes to GH Actions and updated Astro

Adding changes to GH Actions and updated Astro #3

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master # Trigger the workflow on push to the main branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '22.5.1' # Specify your Node.js version
- run: npm install --force
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GIT_TOKEN }}
publish_dir: ./dist
publish_branch: web # Deploy to gh-pages branch