-
-
Notifications
You must be signed in to change notification settings - Fork 195
46 lines (37 loc) · 1.18 KB
/
surge-receive-pull-request.yml
File metadata and controls
46 lines (37 loc) · 1.18 KB
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
42
43
44
45
46
name: Receive PR
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
# Checks that all commits contain sign-offs
check-signed-commits:
name: Check signed commits
runs-on: ubuntu-latest
steps:
- uses: debezium/dbz/.github/actions/check-dco@main
build-preview:
needs: [ check-signed-commits ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Update snapshot links
run: ./_scripts/create-snapshot-links.sh
- name: Build
run: docker run --privileged -i --rm -p 4000:4000 -e LC_ALL=C.UTF-8 -e LANG=C.UTF-8 -v $(pwd):/site debezium/website-builder bash -c "rake clean build[production]"
- name: upload dist artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: _site/
retention-days: 5
- name: Save PR number
if: ${{ always() }}
run: echo ${{ github.event.number }} > ./pr-id.txt
- name: Upload PR number
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: pr
path: ./pr-id.txt