-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 780 Bytes
/
Copy pathcd.yaml
File metadata and controls
35 lines (30 loc) · 780 Bytes
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
27
28
29
30
31
32
33
34
35
name: Build website
on:
push:
branches:
- main
permissions:
contents: write
jobs:
gh-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/setup-node@v3.1.1
with:
node-version: '16.x'
- name: Release to GitHub Pages
env:
GIT_USER: "$GITHUB_ACTOR"
GIT_PASS: "${{ secrets.GITHUB_TOKEN }}"
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run deploy