|
|
@@ -11,11 +11,7 @@ on:
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
workflow_dispatch:
|
|
|
|
|
|
-# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
|
-permissions:
|
|
|
- contents: read
|
|
|
- pages: write
|
|
|
- id-token: write
|
|
|
+permissions: {}
|
|
|
|
|
|
# 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.
|
|
|
@@ -26,10 +22,16 @@ concurrency:
|
|
|
jobs:
|
|
|
# Build job
|
|
|
build:
|
|
|
+ name: build
|
|
|
runs-on: ubuntu-latest
|
|
|
+ permissions:
|
|
|
+ contents: read
|
|
|
+ pages: write # For preparing the page deployment
|
|
|
steps:
|
|
|
- name: Checkout
|
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
+ with:
|
|
|
+ persist-credentials: false
|
|
|
- name: Setup Ruby
|
|
|
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b
|
|
|
with:
|
|
|
@@ -48,10 +50,14 @@ jobs:
|
|
|
|
|
|
# Deployment job
|
|
|
deploy:
|
|
|
+ name: deploy
|
|
|
environment:
|
|
|
name: github-pages
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
runs-on: ubuntu-latest
|
|
|
+ permissions:
|
|
|
+ pages: write # For deploying the page
|
|
|
+ id-token: write # For authorizing the deployment
|
|
|
needs: build
|
|
|
steps:
|
|
|
- name: Deploy to GitHub Pages
|