Skip to content

Editing GitHub Page

Editing GitHub Page #5

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- develop
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Node.js ⚙️
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Dependencies 📦
run: |
npm install
working-directory: .pages
- name: Build 🔧
run: |
npm run build
working-directory: .pages
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .pages/dist
branch: gh-pages
token: ${{ secrets.GITHUB_TOKEN }}