Skip to content

Commit cb2aba7

Browse files
committed
update workflow
1 parent 85f5caf commit cb2aba7

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/jekyll.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Jekyll site CI
22

33
on:
4+
push:
45
pull_request:
56
branches: [ master, main ]
67
workflow_dispatch:
@@ -12,28 +13,34 @@ permissions:
1213

1314
jobs:
1415
build:
15-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1617
steps:
1718
- name: Checkout
18-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
1920
with:
2021
ref: ${{ github.event.inputs.branch }}
2122

2223
- name: Setup Ruby
23-
uses: ruby/setup-ruby@v1
24+
uses: ruby/setup-ruby@v1.204.0
2425
with:
2526
ruby-version: '3.1'
2627
bundler-cache: true
2728
cache-version: 0
2829

2930
- name: Setup Pages
3031
id: pages
31-
uses: actions/configure-pages@v2
32+
uses: actions/configure-pages@v5
3233

3334
- name: Set Jekyll environment
3435
id: name
3536
run: |
37+
if [ "$REPO_OWNER" == "elixir-europe" ]; then
3638
echo "jekyll_env=production" >> $GITHUB_OUTPUT
39+
else
40+
echo "jekyll_env=development" >> $GITHUB_OUTPUT
41+
fi
42+
env:
43+
REPO_OWNER: ${{ github.repository_owner }}
3744

3845
- name: Install dependencies
3946
run: |
@@ -48,6 +55,8 @@ jobs:
4855
JEKYLL_BUILD_BRANCH: ${{ github.ref_name }}
4956
JEKYLL_ENV: ${{ steps.name.outputs.jekyll_env }}
5057
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
JEKYLL_BASE_PATH: ${{ steps.pages.outputs.base_path }}
5159

5260
- name: Upload artifact
53-
uses: actions/upload-pages-artifact@v1
61+
uses: actions/upload-pages-artifact@v3
62+

0 commit comments

Comments
 (0)