deps(ruby): update dependency jekyll-theme-chirpy ( 7.1.1 → 7.2.3 ) (… #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: GitHub Pages | |
on: | |
# Manual Trigger | |
workflow_dispatch: | |
inputs: | |
dry-run: | |
description: Dry Run | |
default: true | |
required: false | |
type: boolean | |
# "Wet" Run on any Git Release | |
push: | |
tags: ["*"] | |
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 | |
steps: | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.3" | |
- name: Generate Token | |
uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1 | |
id: app-token | |
with: | |
app-id: "${{ secrets.BOT_APP_ID }}" | |
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
token: "${{ steps.app-token.outputs.token }}" | |
- name: Install jekyll and bundler | |
run: gem install bundler jekyll | |
- name: Show bundler version | |
run: bundler --version | |
- name: Show jekyll version | |
run: jekyll --version | |
- name: Install gems | |
run: bundle install --gemfile=website/Gemfile | |
- name: Run jekyll build | |
working-directory: ./website | |
run: bundle exec jekyll build --trace | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 | |
with: | |
path: ./website/_site | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
if: "${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.dry-run == false)}}" | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Generate Token | |
uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1 | |
id: app-token | |
with: | |
app-id: "${{ secrets.BOT_APP_ID }}" | |
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4 | |
with: | |
token: "${{ steps.app-token.outputs.token }}" |