Skip to content

Merge pull request #25 from criticalmaps/fix/chromeRendering #8

Merge pull request #25 from criticalmaps/fix/chromeRendering

Merge pull request #25 from criticalmaps/fix/chromeRendering #8

Workflow file for this run

name: Build and Deploy Jekyll Site
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
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.3'
bundler-cache: true
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
- name: Fix symlinks in artifact
run: |
cd _site
find . -type l -delete
cd ..
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: _site/
retention-days: 1
if-no-files-found: error
deploy:
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4