Skip to content

Commit

Permalink
Deploy docs CI
Browse files Browse the repository at this point in the history
  • Loading branch information
deminearchiver committed Nov 2, 2024
1 parent e55bc9b commit 73ec742
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy website
on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
cancel-in-progress: true
group: github-pages

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Cache Turborepo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 23.x
cache: yarn
- name: Install dependencies
run: yarn
- name: Build
run: yarn docs:build
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: apps/docs/dist
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
name: Deploy to GitHub Pages
id: deploy
1 change: 1 addition & 0 deletions apps/docs/tsconfig.app.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"root":["./src/app.tsx","./src/env.d.ts","./src/index.tsx","./src/styles/reset.css.ts","./src/styles/theme.css.ts","./src/theme/contract.ts","./src/theme/index.ts","./src/theme/theme.ts"],"version":"5.6.3"}
1 change: 1 addition & 0 deletions apps/docs/tsconfig.node.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"root":["./vite.config.ts"],"version":"5.6.3"}

0 comments on commit 73ec742

Please sign in to comment.