Skip to content

Commit

Permalink
add docs release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Jul 15, 2024
1 parent 80ad4d0 commit f646606
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Generate docs
on:
release:
types: [published]
permissions:
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 16
- run: |
yarn
yarn docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit f646606

Please sign in to comment.