mirror of
https://github.com/imezx/Warp.git
synced 2026-03-18 00:44:16 +00:00
57 lines
No EOL
1.2 KiB
YAML
57 lines
No EOL
1.2 KiB
YAML
name: Deploy
|
|
on:
|
|
workflow_dispatch: {}
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Build & Deploy
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: Cache Bun packages
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.bun/install/cache
|
|
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock', '**/bun.lockb', '**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-bun-
|
|
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v4
|
|
|
|
- name: Install dependencies
|
|
run: bun ci
|
|
|
|
- name: Build
|
|
run: |
|
|
bun run docs:build
|
|
touch docs/.vitepress/dist/.nojekyll
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: docs/.vitepress/dist
|
|
|
|
- name: Deploy
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4 |