Skip to content

edge_distance

edge_distance #5

Workflow file for this run

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