Skip to content

Commit

Permalink
Actions for Github pages should work now for build and deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
choafe committed May 15, 2024
1 parent a6fc213 commit 89aea57
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
<<<<<<< Updated upstream
name: Deploy Jekyll site to Pages

defaults:
run:
# Specifies where all site materials are located for the job
working-directory: ./docs
=======
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
>>>>>>> Stashed changes

on:
# Runs on pushes targeting the default branch
Expand All @@ -31,29 +30,26 @@ concurrency:
group: "pages"
cancel-in-progress: false

defaults:
run:
# Specifies where all site materials are located for the job
working-directory: ./docs

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
ruby-version: "3.1" # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3

# Deployment job
Expand Down

0 comments on commit 89aea57

Please sign in to comment.