-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 841 Bytes
/
preview.yml
File metadata and controls
41 lines (34 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: RFC Preview
on:
pull_request:
branches:
- develop
permissions:
contents: read
deployments: write
jobs:
preview:
env:
GH_TOKEN: ${{ github.token }}
runs-on: ubuntu-latest
environment:
name: rfc-preview
url: ${{ steps.upload.outputs.artifact-url }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Build preview
run: bun run index.ts --preview
- name: Upload RFC preview
id: upload
uses: actions/upload-artifact@v7
with:
name: rfc-preview-pr-${{ github.event.pull_request.number }}
path: ./dist/preview.html
archive: false