Skip to content

Commit

Permalink
ci: documentation deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jun 11, 2024
1 parent 6ec68fc commit cbb6046
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Setup

description: Checkout repository & install dependencies

runs:
using: composite
steps:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn

- run: yarn install --immutable
shell: bash
25 changes: 25 additions & 0 deletions .github/workflows/apps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Applications

on:
push:
branches: [main]

jobs:
deploy-documentation:
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup

- run: yarn build

- uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: reactive-dot
directory: apps/docs/build
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*

0 comments on commit cbb6046

Please sign in to comment.