Skip to content

Merge pull request #76 from MetroStar/dependabot/npm_and_yarn/react-h… #55

Merge pull request #76 from MetroStar/dependabot/npm_and_yarn/react-h…

Merge pull request #76 from MetroStar/dependabot/npm_and_yarn/react-h… #55

name: Build and Deploy
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Build for GitHub Pages
run: npm run predeploy
env:
APP_BASE_URL: /comet-starter/
- name: Deploy
uses: crazy-max/ghaction-github-pages@v1
with:
target_branch: gh-pages
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}