no need for bun tests anymore #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pages-workflow | |
on: | |
push: | |
branches: | |
- master | |
# This event is required to deploy to GitHub Pages with actions/deploy-pages@v4 | |
workflow_run: | |
workflows: ["Generate and Deploy Docs"] | |
types: | |
- completed | |
jobs: | |
generate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: 1.1.29 | |
- name: Build the docs | |
run: bun run docs | |
- name: Upload artifacts | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: ./docs # Path to the docs folder | |
deploy-docs: | |
runs-on: ubuntu-latest | |
needs: generate-docs | |
permissions: | |
pages: write # Needed to deploy to GitHub Pages | |
id-token: write # Needed for authentication | |
steps: | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 |