Skip to content

Commit ba1d62e

Browse files
committed
ci: add Roomy PR preview builds with Deno deploy.
1 parent cd07d2a commit ba1d62e

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Pull Request Preview
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write # required
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
- name: setup node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: lts/*
21+
cache: 'pnpm'
22+
- run: |
23+
pnpm i
24+
pnpm run build-web-app
25+
- name: Deploy to Deno Deploy
26+
uses: denoland/deployctl@v1
27+
with:
28+
project: roomy-space
29+
entrypoint: https://deno.land/std/http/file_server.ts

.github/workflows/sdk-api-docs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
# Build job
1111
build:
12+
# Disable API docs for now since we don't have that much of an API anymore.
13+
if: 'false'
1214
runs-on: ubuntu-latest
1315
permissions:
1416
contents: read
@@ -26,7 +28,7 @@ jobs:
2628

2729
# Deployment job
2830
deploy:
29-
if: github.event_name == 'push' && github.ref_name == 'main'
31+
if: false && github.event_name == 'push' && github.ref_name == 'main'
3032
environment:
3133
name: github-pages
3234
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)