Skip to content

Commit 84f9ab7

Browse files
committed
fix: gha workflows
1 parent 42ccdc7 commit 84f9ab7

File tree

2 files changed

+19
-36
lines changed

2 files changed

+19
-36
lines changed

.github/workflows/build_deploy.yml

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
# - staging
87
pull_request:
98
repository_dispatch:
109
workflow_dispatch:
@@ -22,50 +21,35 @@ concurrency:
2221
cancel-in-progress: false
2322

2423
jobs:
25-
# set_environment:
26-
# outputs:
27-
# my_env: ${{ steps.setenv.outputs.my_env }}
28-
# my_url: ${{ steps.setenv.outputs.my_url }}
29-
# runs-on: ubuntu-latest
30-
# steps:
31-
# - id: setenv
32-
# run: |
33-
# if [ "$GITHUB_REF" = "refs/heads/main" ]
34-
# then
35-
# echo "::set-output name=my_env::production"
36-
# echo "::set-output name=my_url::https://www.tebako.org"
37-
# elif [ "$GITHUB_REF" = "refs/heads/staging" ]
38-
# then
39-
# echo "::set-output name=my_env::staging"
40-
# echo "::set-output name=my_url::https://staging-www.tebako.org"
41-
# fi
4224

4325
build:
4426
runs-on: ubuntu-latest
45-
# needs: [set_environment]
4627
steps:
4728
- name: Checkout
48-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
4930

5031
- name: Setup Ruby
5132
uses: ruby/setup-ruby@v1
5233
with:
53-
ruby-version: '3.1'
34+
ruby-version: '3.3'
5435
bundler-cache: true
55-
cache-version: 0 # Increment this number if you need to re-download cached gems
36+
5637
- name: Setup Pages
5738
id: pages
58-
uses: actions/configure-pages@v3
39+
uses: actions/configure-pages@v5
40+
with:
41+
enablement: true
5942

6043
- name: Build with Jekyll
6144
# Outputs to the './_site' directory by default
62-
run: make _site
45+
run: bundle exec jekyll build --verbose --trace --baseurl "${{ steps.pages.outputs.base_path }}"
6346
env:
6447
JEKYLL_ENV: production
48+
JEKYLL_LOG_LEVEL: debug
6549

6650
- name: Upload artifact
6751
# Automatically uploads an artifact from the './_site' directory by default
68-
uses: actions/upload-pages-artifact@v2
52+
uses: actions/upload-pages-artifact@v3
6953

7054
# Deployment job
7155
deploy:
@@ -78,4 +62,4 @@ jobs:
7862
steps:
7963
- name: Deploy to GitHub Pages
8064
id: deployment
81-
uses: actions/deploy-pages@v2
65+
uses: actions/deploy-pages@v4

.github/workflows/links.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,35 @@ on:
44
push:
55
branches:
66
- main
7-
- staging
87
pull_request:
98

109
jobs:
1110
link_checker:
1211
runs-on: ubuntu-latest
1312
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
13+
- uses: actions/checkout@v4
1614

17-
- name: Setup Ruby
18-
uses: ruby/setup-ruby@v1
15+
- uses: ruby/setup-ruby@v1
1916
with:
20-
ruby-version: '3.1'
17+
ruby-version: '3.3'
2118
bundler-cache: true
22-
cache-version: 0 # Increment this number if you need to re-download cached gems
19+
2320
- name: Setup Pages
2421
id: pages
2522
uses: actions/configure-pages@v5
23+
with:
24+
enablement: true
2625

2726
- name: Build with Jekyll
2827
# Outputs to the './_site' directory by default
29-
run: make _site
28+
run: bundle exec jekyll build --verbose --trace --baseurl "${{ steps.pages.outputs.base_path }}"
3029
env:
3130
JEKYLL_ENV: production
3231

3332
- name: Link Checker
34-
uses: lycheeverse/lychee-action@v1.10.0
33+
uses: lycheeverse/lychee-action@v1.2.0
3534
with:
36-
args: --verbose --no-progress -- _site/**/*.html
35+
args: --verbose --no-progress --exclude-file .lycheeignore -- _site/**/*.html
3736
fail: true
3837
env:
3938
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)