This repository has been archived by the owner on Feb 11, 2024. It is now read-only.
Merge pull request #3 from toplap/feat/title-description #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install and Build | |
run: | | |
npm i | |
npm ci | |
npm run build | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to | |
FOLDER: build # The folder the action should deploy | |
CLEAN: true # Automatically remove deleted files from the deploy branch |