-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 928 Bytes
/
static.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
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy and build content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
strategy:
matrix:
node-version: [ 18, 20 ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: install and test
run: |
npm install -g yarn
npm install -g gulp
yarn install
gulp build # to do: we should make this run by `npm test`
env:
CI: true
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Deploy to GH Pages 🚀
uses: actions/deploy-pages@v4
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
publish_dir: public