-
Notifications
You must be signed in to change notification settings - Fork 4
26 lines (26 loc) · 1.06 KB
/
build_and_deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
HOME_BASE_URL="${{ vars.HOME_BASE_URL }}" G_ID="${{ vars.G_ID }}" SEARCH_ACCOUNT_ID="${{ vars.SEARCH_ACCOUNT_ID }}" SEARCH_API_KEY="${{ vars.SEARCH_API_KEY }}" DISABLE_ROBOTS="${{ vars.DISABLE_ROBOTS }}" 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: ./docs # The folder the action should deploy
CLEAN: true # Automatically remove deleted files from the deploy branch