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
2423jobs :
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 :
7862 steps :
7963 - name : Deploy to GitHub Pages
8064 id : deployment
81- uses : actions/deploy-pages@v2
65+ uses : actions/deploy-pages@v4
0 commit comments