Skip to content

Commit

Permalink
ci: Fix build task
Browse files Browse the repository at this point in the history
  • Loading branch information
PauloPhagula committed Sep 12, 2023
1 parent 30098d9 commit 3eb0ee3
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Based on https:/actions/starter-workflows/blob/main/pages/jekyll.yml
name: Build

Expand Down Expand Up @@ -31,15 +32,20 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
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 cache gems
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 cache gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- run: JEKYLL_ENV=production bundle exec jekyll build --baseurl ${{steps.pages.outputs.base_path}} # defaults output to '/_site'
- name: Build with Jekyll
# Outputs to the '/_site' directory
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV=production
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1 # This will automatically upload an artifact from the '/_site' directory
# Automatically uploads an artifact from the '/_site' directory
uses: actions/upload-pages-artifact@v1
# Deployment job
deploy:
environment:
Expand Down

0 comments on commit 3eb0ee3

Please sign in to comment.