Skip to content

Commit

Permalink
Build with custom Github Action
Browse files Browse the repository at this point in the history
Signed-off-by: Iker Pedrosa <[email protected]>
  • Loading branch information
ikerexxe committed Jan 4, 2025
1 parent ec741dd commit b3bb0fe
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: GitHub Pages

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Use Ruby 3.3
bundler-cache: true
- name: Cache gems
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Remove cached gems
run: |
rm -rf vendor/bundle
- name: Build # Directly build with Jekyll
run: |
bundle install
bundle exec jekyll build -d _site
- name: Deploy
uses: actions/deploy-pages@v2

0 comments on commit b3bb0fe

Please sign in to comment.