Skip to content

Update jekyll-gh-pages.yml #2

Update jekyll-gh-pages.yml

Update jekyll-gh-pages.yml #2

name: Deploy Jekyll Site to GitHub Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # Ensure this matches the Ruby version you use locally
- name: Build Jekyll site
run: |
cd browser
bundle install
bundle exec jekyll build --destination ../_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
env:
JEKYLL_ENV: production
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}