forked from CGAL/cgal-web
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.27 KB
/
Receive_PR.yml
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
name: Receive_PR
# read-only repo token
# no access to secrets
on: [push,pull_request,workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Setup Jekyll
run: |
gem install jekyll bundler
- name: Update Configuration
run: |
yq -i '.JB.BASE_PATH = ""' _config.yml
yq -i '.baseurl = "https://cgal.github.io/cgal-web"' _config.yml
yq -i '.JB.ASSET_PATH = "https://cgal.github.io/cgal-web/assets/themes/cgal/"' _config.yml
- name: Remove demo/ (temporarily)
run: rm -rf demo/
- name: Setup Pages
uses: actions/configure-pages@v5
- name: setup nodejs
run: npm install
- name: Build with jekyll
run: jekyll build --destination ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Create PR number file
run: |
echo "${{ github.event.number }}" > pr_number.txt
- name: Upload PR number file
uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr_number.txt