Skip to content

Use the correct version #11

Use the correct version

Use the correct version #11

Workflow file for this run

# I built this first attempt by combining two example scripts
# https://github.com/danott/allow-empty/new/main?filename=.github%2Fworkflows%2Fstatic.yml&workflow_template=pages%2Fstatic
# https://docs.github.com/en/pages/getting-started-with-github-pages/using-custom-workflows-with-github-pages#linking-separate-build-and-deploy-jobs
name: Deploy to GitHub Pages
on:
workflow_dispatch:
push:
branches: ["main"]
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
with:
fetch-depth: 0
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Rake build
run: bundle exec rake build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
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@v5