Skip to content

Commit

Permalink
ci: fix github pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-pavel-anton authored Sep 15, 2024
1 parent 75d51b4 commit c2313d8
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,28 @@ jobs:
with:
token: "${{ steps.app-token.outputs.token }}"

- name: Setup Pages
uses: actions/configure-pages@v5
with:
token: "${{ steps.app-token.outputs.token }}"
- name: Install jekyll and bundler
run: sudo gem install bundler jekyll

- name: Show bundler version
run: bundler --version

- name: Show jekyll version
run: jekyll --version

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
token: "${{ steps.app-token.outputs.token }}"
source: ./website/
destination: ./_site
verbose: true
- name: Install gems
run: sudo bundle install --gemfile=website/Gemfile

- name: Run jekyll build
working-directory: ./website
run: bundle exec jekyll build --trace

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
name: jekyll_build
retention-days: 1
path: ./_site
path: ./website/_site

deploy:
environment:
Expand Down

0 comments on commit c2313d8

Please sign in to comment.