Skip to content

Commit

Permalink
Add workflow for deploying docs to GH Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
joonashak committed Jul 19, 2023
1 parent bdc8225 commit ed0ac0d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy documentation

on:
# FIXME: For testing.
push:

jobs:
build-docs:
name: Build docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build vuepress project
working-directory: docs
run: npm run build
- name: Upload gh-pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/build

deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
needs:
- build-docs
permissions:
pages: write
id-token: write
steps:
- name: Deploy artifact to GH Pages
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.env*
**/.vuepress/.cache
**/.vuepress/.temp
docs/build

0 comments on commit ed0ac0d

Please sign in to comment.