Skip to content

Commit

Permalink
ci: Replace the existing deployment action (#14)
Browse files Browse the repository at this point in the history
with manually building the site and moving the output to `gh-pages` branch
  • Loading branch information
GeckoEidechse authored Aug 9, 2024
1 parent fbdc579 commit 035fac9
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ jobs:
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: helaili/[email protected]
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
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: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build
env:
JEKYLL_ENV: production

# Deployment job
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site # Location from which to grab the files to deploy
publish_branch: gh-pages # Branch name to deploy to
force_orphan: true # Always reset branch to deploy to

0 comments on commit 035fac9

Please sign in to comment.