Skip to content

Commit

Permalink
ci: update github page worklow
Browse files Browse the repository at this point in the history
  • Loading branch information
lgdd committed Apr 29, 2024
1 parent 5923c68 commit 27b6613
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,24 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- 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 cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./docs/_site
env:
JEKYLL_ENV: production
working-directory: ./docs
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "/docs/_site"
path: "./docs/_site/"

deploy:
environment:
Expand Down

0 comments on commit 27b6613

Please sign in to comment.