Skip to content

Merge pull request #59 from yeri918/main-dl #23

Merge pull request #59 from yeri918/main-dl

Merge pull request #59 from yeri918/main-dl #23

Workflow file for this run

name: Deploy on Merge to Main
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "21" # Specify the Node.js version you are using
- name: Install dependencies
run: npm install
working-directory: ./app
- name: Configure Git
run: |
git config --global user.email "leungcheuk209@hotmail.com"
git config --global user.name "dominic-lcw"
- name: Build
run: npm run build
working-directory: ./app
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx gh-pages -d dist -r https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
working-directory: ./app