Update dependencies (Ruby 3.x update) 2 #76
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: Site Deployment | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- .github/workflows/deploy-site.yml | |
- site/** | |
- Gemfile | |
- Gemfile.lock | |
- _config.yml | |
concurrency: | |
group: pages | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3.6 | |
bundler-cache: true | |
- name: Setup GitHub Pages | |
uses: actions/configure-pages@v5 | |
- name: Build site | |
uses: limjh16/jekyll-action-ts@v2 | |
with: | |
jekyll_src: site | |
custom_opts: --config _config.yml --trace | |
env: | |
JEKYLL_ENV: production | |
- name: Upload GH Pages artifact | |
uses: actions/upload-pages-artifact@v3 | |
deploy: | |
name: Deployment | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |