Skip to content

Commit 51f7da5

Browse files
authored
Create publish docs action (ExpediaGroup#404)
* Create publish docs action * On run on docs and website update
1 parent 481f15f commit 51f7da5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publish-docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'docs/**'
9+
- 'website/**'
10+
11+
jobs:
12+
publish-docs:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
19+
- name: Use Node.js 12
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: 12
23+
24+
- name: Run npm commands
25+
run: |
26+
cd website
27+
npm install
28+
npm run publish-gh-pages
29+
env:
30+
CI: true
31+
CURRENT_BRANCH: master
32+
USE_SSH: true

0 commit comments

Comments
 (0)