build: update ghactions versions (#52) #262
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: Build and Deploy | |
on: | |
push: | |
# NOTE: | |
# For a **project** site (username.github.io/project/), push things | |
# to the **master** branch and make sure to set the line below to | |
# ` - master`; also, at the end of the file, change to `BRANCH: gh-pages` | |
# | |
# For a **personal** site (username.github.io/), push things to a **dev** | |
# branch and make sure to set the line below to `- dev` this is | |
# because for user pages GitHub pages **requires** the deployment to be | |
# on the master branch; also, at the end of the file, change to | |
# `BRANCH: master` | |
branches: | |
- source | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- uses: lemonarc/jekyll-action@1 | |
- uses: JamesIves/github-pages-deploy-action@4 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: master # The branch the action should deploy to. | |
FOLDER: _site # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |