Skip to content

Commit 4003f84

Browse files
authored
Create deploy.yml
1 parent 7cd88b8 commit 4003f84

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run Respec & Deploy to GH Pages
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Run Respec
17+
run: |
18+
npx -p respec respec2html -s index.html?githubToken=${{ secrets.GITHUB_TOKEN }} -o build-index.html && rm index.html && mv build-index.html index.html
19+
- name: Deploy
20+
uses: peaceiris/actions-gh-pages@v3
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_dir: .
24+
commit_message: ${{ github.event.head_commit.message }}

0 commit comments

Comments
 (0)