Skip to content

add: permissions key #2

add: permissions key

add: permissions key #2

Workflow file for this run

name: Deploy docusaurus
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
id-token: write
jobs:
build:
name: Build docusaurus
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.0
- name: Install dependencies
run: bun install
- name: Build site
run: bun run build
- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build
deploy:
name: Deploy to gitHub pages
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to gitHub pages
id: deployment
uses: actions/deploy-pages@v4