-
-
Notifications
You must be signed in to change notification settings - Fork 414
38 lines (34 loc) · 1.2 KB
/
build-webpage.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
name: Build Webpage
on:
push:
branches: [ main ]
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-paths
# if [[ ${changed_file} == "CHANGELOG.md" ]] || [[ ${changed_file} = screenshots* ]] || [[ ${changed_file} = webpage* ]] || [[ ${changed_file} = ".github/workflows/build-webpage.yml" ]] ;
paths:
- '.github/workflows/build-webpage.yml'
pull_request:
branches: [ main ]
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-paths
# if [[ ${changed_file} == "CHANGELOG.md" ]] || [[ ${changed_file} = screenshots* ]] || [[ ${changed_file} = webpage* ]] || [[ ${changed_file} = ".github/workflows/build-webpage.yml" ]] ;
paths:
- 'CHANGELOG.md'
- 'screenshots/**'
- 'webpage/**'
defaults:
run:
working-directory: webpage
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: files
uses: masesgroup/retrieve-changed-files@v3
with:
format: 'csv'
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install
- run: npm run build