Skip to content

fix: some security breach to access non authorized objects (#272) #21

fix: some security breach to access non authorized objects (#272)

fix: some security breach to access non authorized objects (#272) #21

name: Deploy documentation
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
registry-url: "https://registry.npmjs.org"
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install dependencies
run: bun i
- name: Build with Rspress
run: |
bun --filter "./packages/wabe-documentation" build
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./packages/wabe-documentation/doc_build
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4