forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 949 Bytes
/
documentation.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: documentation
on:
push:
branches:
- master
paths:
- 'docs/**'
- 'resources/**'
- 'tools/**'
pull_request:
paths:
- 'docs/**'
- 'resources/**'
- 'tools/**'
jobs:
build-and-publish:
runs-on: ubuntu-20.04
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Set up Virtualenv
run: pip install virtualenv
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 50
- name: Run website_build.sh
# Use a conditional step instead of a conditional job to work around #20700.
if: github.repository == 'web-platform-tests/wpt'
run: ./tools/ci/website_build.sh
env:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}