Skip to content

Commit bf5e568

Browse files
committed
Build outside of docker
1 parent 0b75c79 commit bf5e568

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/jekyll.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ concurrency:
1818
cancel-in-progress: false
1919

2020
jobs:
21-
# Build job
2221
build:
2322
runs-on: ubuntu-latest
2423
steps:
@@ -27,16 +26,22 @@ jobs:
2726
- name: Setup Pages
2827
id: pages
2928
uses: actions/configure-pages@v5
30-
- name: Build with Jekyll
29+
- uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: '3.4'
32+
bundler-cache: false
33+
- name: Install Gems
34+
working-directory: ./src
35+
run: bundle install
36+
- name: Build
37+
working-directory: ./src
3138
run: |
32-
make setup
33-
make build
34-
env:
35-
JEKYLL_ENV: production
39+
JEKYLL_REV=$(git rev-parse --short HEAD) JEKYLL_ENV=production \
40+
bundle exec jekyll build -d ./../dist -c '_config.yml,_config.prod.yml'
3641
- name: Upload artifact
3742
uses: actions/upload-pages-artifact@v3
3843
with:
39-
path: 'dist/'
44+
path: 'src/dist/'
4045

4146
deploy:
4247
environment:

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
services:
22
jekyll:
3+
user: ${UID:-1000}:1000
34
build: .
45
ports:
56
- 4000:4000

0 commit comments

Comments
 (0)