Update ruby/setup-ruby action to v1.201.0 (#190) #277
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 | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup git user/email | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
ref: public | |
path: _site | |
- name: Setup Ruby | |
uses: ruby/[email protected] | |
# Runs a single command using the runners shell | |
- name: Run Jekyll build and deploy | |
run: | | |
COMMIT=`git rev-parse --short HEAD` | |
bundle install | |
bundle exec jekyll build | |
cd _site | |
touch .nojekyll | |
git add -A | |
git commit -m "Generated site at $COMMIT" | |
git push origin public |