Deploy page #1017
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: Deploy page | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 37 9 * * * | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- .github/** | |
- README.md | |
- LICENSE | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build page | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
env: | |
RUBY_YJIT_ENABLE: 1 | |
steps: | |
- name: Check out repo | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Ruby | |
# yamllint disable-line rule:line-length | |
uses: ruby/setup-ruby@c04af2bb7258bb6a03df1d3c1865998ac9390972 # v1.194.0 | |
with: | |
rubygems: 3.5.20 | |
bundler-cache: true | |
- name: Build with Jekyll | |
env: | |
JEKYLL_ENV: production | |
run: bundle exec jekyll build --verbose --baseurl '' | |
- name: Upload artifact | |
uses: actions/[email protected] | |
deploy: | |
name: Deploy page | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-22.04 | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/[email protected] |