Skip to content

Commit

Permalink
ci: workflow for deploying demo
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jun 18, 2024
1 parent 3411840 commit 827a88b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Setup

description: Checkout repository & install dependencies

runs:
using: composite
steps:
# https://github.com/actions/setup-node/issues/899
- run: corepack enable
shell: bash

- 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: dot-connect-demo
directory: apps/demo/dist
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 827a88b

Please sign in to comment.