Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaitanLyss committed Jul 31, 2024
2 parents 1a991dc + baed5af commit 393c136
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish docs

on:
push:
paths: ["src/**", "test/**", "package.json", "tsconfig.json", ".github/workflows/docs.yml"]
branches:
- main
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- uses: oven-sh/setup-bun@v2
- run: bun docgen
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
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 393c136

Please sign in to comment.