Skip to content

blog: Linux day 2025 post-mortem #1

blog: Linux day 2025 post-mortem

blog: Linux day 2025 post-mortem #1

Workflow file for this run

on: push
name: pages
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: true
- name: setup_ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: setup_pages
id: pages
uses: actions/configure-pages@v5
- name: build_zola
# Build Zola site into './public' directory
uses: zolacti/on@build
- name: build_jekyll
# Outputs to the './public/old' directory by default
run: |
bundle install --gemfile=old/Gemfile
jekyll build -b "${{ steps.pages.outputs.base_path }}/old" -s old -d public/old
env:
JEKYLL_ENV: production
- name: Upload artifact
# Automatically uploads an artifact from the './public' directory by default
uses: actions/upload-pages-artifact@v3
with:
path: public
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: deploy_pages
id: deployment
uses: actions/deploy-pages@v4