File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 11name : Jekyll site CI
22
33on :
4+ push :
45 pull_request :
56 branches : [ master, main ]
67 workflow_dispatch :
@@ -12,28 +13,34 @@ permissions:
1213
1314jobs :
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 : |
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+
You can’t perform that action at this time.
0 commit comments