Skip to content

publish workshop

publish workshop #31

Workflow file for this run

name: Deploy 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:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
working-directory: docs
- name: Build Jekyll
run: bundle exec jekyll build
working-directory: docs
- name: Filter to participant handout pages
run: |
mkdir -p _deploy/workshop/images
# Copy site assets (CSS, etc.)
cp -r docs/_site/assets _deploy/ 2>/dev/null || true
# Copy landing page
cp docs/_site/index.html _deploy/
# Copy participant handout pages only
cp docs/_site/workshop/participant-handout.html _deploy/workshop/
cp docs/_site/workshop/participant-handout-setup.html _deploy/workshop/
cp docs/_site/workshop/participant-handout-exercise1.html _deploy/workshop/
cp docs/_site/workshop/participant-handout-exercise2.html _deploy/workshop/
cp docs/_site/workshop/participant-handout-exercise3.html _deploy/workshop/
cp docs/_site/workshop/participant-handout-exercise4.html _deploy/workshop/
cp docs/_site/workshop/participant-handout-exercise5.html _deploy/workshop/
cp docs/_site/workshop/participant-handout-exercise6.html _deploy/workshop/
cp docs/_site/workshop/participant-handout-exercise7.html _deploy/workshop/
cp docs/_site/workshop/participant-handout-exercise8.html _deploy/workshop/
cp docs/_site/workshop/participant-handout-resources.html _deploy/workshop/
# Copy images if any exist
cp -r docs/_site/workshop/images/* _deploy/workshop/images/ 2>/dev/null || true
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_deploy'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4