4
4
push :
5
5
branches :
6
6
- main
7
- # - staging
8
7
pull_request :
9
8
repository_dispatch :
10
9
workflow_dispatch :
@@ -22,50 +21,33 @@ concurrency:
22
21
cancel-in-progress : false
23
22
24
23
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
42
24
43
25
build :
44
26
runs-on : ubuntu-latest
45
- # needs: [set_environment]
46
27
steps :
47
28
- name : Checkout
48
- uses : actions/checkout@v3
29
+ uses : actions/checkout@v4
49
30
50
31
- name : Setup Ruby
51
32
uses : ruby/setup-ruby@v1
52
33
with :
53
- ruby-version : ' 3.1 '
34
+ ruby-version : ' 3.3 '
54
35
bundler-cache : true
55
- cache-version : 0 # Increment this number if you need to re-download cached gems
36
+
56
37
- name : Setup Pages
57
38
id : pages
58
- uses : actions/configure-pages@v3
39
+ uses : actions/configure-pages@v5
59
40
60
41
- name : Build with Jekyll
61
42
# Outputs to the './_site' directory by default
62
- run : make _site
43
+ run : bundle exec jekyll build --verbose --trace --baseurl "${{ steps.pages.outputs.base_path }}"
63
44
env :
64
45
JEKYLL_ENV : production
46
+ JEKYLL_LOG_LEVEL : debug
65
47
66
48
- name : Upload artifact
67
49
# Automatically uploads an artifact from the './_site' directory by default
68
- uses : actions/upload-pages-artifact@v2
50
+ uses : actions/upload-pages-artifact@v4
69
51
70
52
# Deployment job
71
53
deploy :
78
60
steps :
79
61
- name : Deploy to GitHub Pages
80
62
id : deployment
81
- uses : actions/deploy-pages@v2
63
+ uses : actions/deploy-pages@v4
0 commit comments