File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ name: "Build and Deploy"
2
2
on :
3
3
push :
4
4
branches :
5
- - main
6
- - master
5
+ - gh-pages
7
6
paths-ignore :
8
7
- .gitignore
9
8
- README.md
@@ -29,37 +28,30 @@ jobs:
29
28
steps :
30
29
- name : Checkout
31
30
uses : actions/checkout@v4
32
- with :
33
- fetch-depth : 0
34
- # submodules: true
35
- # If using the 'assets' git submodule from Chirpy Starter, uncomment above
36
- # (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets)
37
-
38
- - name : Setup Pages
39
- id : pages
40
- uses : actions/configure-pages@v4
41
31
42
32
- name : Setup Ruby
43
33
uses : ruby/setup-ruby@v1
44
34
with :
45
35
ruby-version : 3.3
46
36
bundler-cache : true
47
37
38
+ - name : Setup Pages
39
+ id : pages
40
+ uses : actions/configure-pages@v5
41
+
48
42
- name : Build site
49
- run : bundle exec jekyll b -d "_site ${{ steps.pages.outputs.base_path }}"
43
+ run : bundle exec jekyll build --baseurl " ${{ steps.pages.outputs.base_path }}"
50
44
env :
51
- JEKYLL_ENV : " production"
45
+ JEKYLL_ENV : production
52
46
53
47
- name : Test site
54
48
run : |
55
49
bundle exec htmlproofer _site \
56
50
\-\-disable-external \
57
51
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
58
52
59
- - name : Upload site artifact
53
+ - name : Upload artifact
60
54
uses : actions/upload-pages-artifact@v3
61
- with :
62
- path : " _site${{ steps.pages.outputs.base_path }}"
63
55
64
56
deploy :
65
57
environment :
You can’t perform that action at this time.
0 commit comments