Skip to content

Commit 6393626

Browse files
Update Receive_PR.yml
1 parent 312fb55 commit 6393626

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

.github/workflows/Receive_PR.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,28 @@ jobs:
1010

1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
14-
- name: Change BASE_PATH
15-
run: yq -i '.JB.BASE_PATH = "https://saillantnicolas.github.io/cgal-web"' _config.yml
13+
uses: actions/checkout@v4
14+
- name: Setup Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: '3.0'
18+
bundler-cache: true
19+
- name: Setup Jekyll
20+
run: |
21+
gem install jekyll bundler
22+
- name: Update Configuration
23+
run: |
24+
yq -i '.JB.BASE_PATH = ""' _config.yml
25+
yq -i '.baseurl = "${{ vars.CGAL_WEB_SITE_URL }}"' _config.yml
26+
yq -i '.JB.ASSET_PATH = "${{ vars.CGAL_WEB_SITE_URL }}/assets/themes/cgal/"' _config.yml
1627
- name: Remove demo/ (temporarily)
1728
run: rm -rf demo/
1829
- name: Setup Pages
1930
uses: actions/configure-pages@v2
20-
- name: Build with Jekyll
21-
uses: actions/jekyll-build-pages@v1
22-
with:
23-
source: ./
24-
destination: ./_site
31+
- name: setup nodejs
32+
run: npm install
33+
- name: Build with jekyll
34+
run: jekyll build --destination ./_site
2535
- name: Upload artifact
2636
uses: actions/upload-pages-artifact@v1
2737
- name: Create PR number file

0 commit comments

Comments
 (0)