Skip to content

Commit 98f6827

Browse files
authored
Update ci.yml
1 parent 16321af commit 98f6827

File tree

1 file changed

+7
-32
lines changed

1 file changed

+7
-32
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,11 @@ jobs:
55
name: Build Jekyll
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
9-
- uses: ruby/setup-ruby@v1
10-
with:
11-
ruby-version: '3.2'
12-
- name: Install dependencies
13-
run: bundle install && bundle exec appraisal install
14-
- name: Setup Pages
15-
id: configure-pages
16-
uses: actions/configure-pages@v5
17-
- name: Setup CI config
8+
- uses: actions/checkout@v2
9+
- name: Build the site in the jekyll/builder container
1810
run: |
19-
echo "---" > _config_ci.yml
20-
echo "baseurl: ${{ steps.configure-pages.outputs.base_path }}" >> _config_ci.yml
21-
- name: Build site
22-
env:
23-
JEKYLL_ENV: production
24-
run: bundle exec appraisal jekyll build --future --config _config_ci.yml,_config.yml
25-
- name: Upload artifact
26-
uses: actions/upload-pages-artifact@v3
27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
38-
39-
40-
11+
export JEKYLL_VERSION=3.8
12+
docker run \
13+
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
14+
-e PAGES_REPO_NWO=${{ github.repository }} \
15+
jekyll/builder:$JEKYLL_VERSION /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"

0 commit comments

Comments
 (0)