Skip to content

Commit

Permalink
use a github action to deploy docs, instead of commiting files (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot authored Sep 14, 2021
1 parent c594d2c commit f00e0e1
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 2,942 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

7 changes: 3 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ jobs:

- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build && npm run build-spec

- name: Enforce docs build
run: if [ ! -z "$(git status --porcelain)" ]; then echo "repo is dirty; you probably need to 'npm run build-spec' and commit the result"; exit 1; fi
run: npm run build

- name: Test
run: npm test
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'update docs'

on:
push:
branches:
- main

jobs:
docs:
name: 'deploy github pages'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build && npm run build-spec

- name: Deploy docs
run: ./scripts/auto-deploy.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ test/baselines/generated-local
package
ecmarkup-*.tgz
.vscode/
docs/
Loading

0 comments on commit f00e0e1

Please sign in to comment.