Update JamesIves/github-pages-deploy-action action to v4.5.0 (#156) #135
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 Website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
jekyll: | |
runs-on: ubuntu-latest | |
container: jekyll/builder | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: Install tar for caching | |
run: apk update && apk add tar | |
- uses: actions/cache@v3 | |
with: | |
path: docs/vendor/bundle | |
key: cache-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: cache-gems- | |
- name: Create Directories | |
run: | | |
mkdir _site/ | |
mkdir -p vendor/bundle/ | |
chmod -R 777 . | |
touch Gemfile.lock | |
chmod a+w Gemfile.lock | |
- name: Install Ruby Dependencies | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Build the Jekyll Website | |
run: bundle exec jekyll build | |
- name: Deploy Github Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: _site/ |