Skip to content

Commit

Permalink
automate publishing docs with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornkihlberg committed Aug 8, 2023
1 parent 813cbbe commit 8d31c1e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/post-integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Post-integration

on:
pull_request:
push:

jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3

- name: 🧰 Setup nix
uses: cachix/install-nix-action@v22
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: 🔨 Build Docs
run: |
nix develop --show-trace --command bash -c "npm i && npm run docs"
- name: 📘 Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs

0 comments on commit 8d31c1e

Please sign in to comment.