Skip to content

Fix CI

Fix CI #5

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Website
on:
workflow_dispatch:
push:
branches: ["main"]
paths: ["site/**", ".github/workflows/website.yml"]
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
if: ${{ github.repository == 'mathieucarbou/YaSolR' }}
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./site
destination: ./site/_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./site/_site
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
actions: read
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4