-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 873 Bytes
/
pages.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
27
28
name: CI
on: [push]
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- name: Build
uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: '16'
- uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command
- uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build` command
- name: Add .nojekyll file
run: sudo touch ./out/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: out # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch