Skip to content

Commit

Permalink
Update Receive_PR.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SaillantNicolas authored Apr 26, 2024
1 parent 312fb55 commit 6393626
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/Receive_PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,28 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Change BASE_PATH
run: yq -i '.JB.BASE_PATH = "https://saillantnicolas.github.io/cgal-web"' _config.yml
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 = "${{ vars.CGAL_WEB_SITE_URL }}"' _config.yml
yq -i '.JB.ASSET_PATH = "${{ vars.CGAL_WEB_SITE_URL }}/assets/themes/cgal/"' _config.yml
- name: Remove demo/ (temporarily)
run: rm -rf demo/
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: setup nodejs
run: npm install
- name: Build with jekyll
run: jekyll build --destination ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
- name: Create PR number file
Expand Down

0 comments on commit 6393626

Please sign in to comment.