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,35 @@ 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
40
+ with :
41
+ enablement : true
59
42
60
43
- name : Build with Jekyll
61
44
# 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 }}"
63
46
env :
64
47
JEKYLL_ENV : production
48
+ JEKYLL_LOG_LEVEL : debug
65
49
66
50
- name : Upload artifact
67
51
# Automatically uploads an artifact from the './_site' directory by default
68
- uses : actions/upload-pages-artifact@v2
52
+ uses : actions/upload-pages-artifact@v3
69
53
70
54
# Deployment job
71
55
deploy :
78
62
steps :
79
63
- name : Deploy to GitHub Pages
80
64
id : deployment
81
- uses : actions/deploy-pages@v2
65
+ uses : actions/deploy-pages@v4
0 commit comments