Skip to content

docs: update

docs: update #2505

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
release-and-page:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install Dependency
run: bun install # --production
- name: Build Page
run: bun run build
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_branch: gh-pages
# publish_dir: |
# ./.tiddlywiki
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./.tiddlywiki
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2