File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change 1
- name : Build and Deploy Jekyll Site
1
+ name : Build and Deploy to GitHub Pages
2
2
3
3
on :
4
- push :
5
- branches : [main]
6
4
workflow_dispatch :
7
5
8
6
permissions :
@@ -15,38 +13,38 @@ jobs:
15
13
runs-on : ubuntu-latest
16
14
17
15
steps :
18
- - name : Checkout repo
16
+ - name : Checkout code
19
17
uses : actions/checkout@v3
20
18
21
- - name : Setup Ruby
19
+ - name : Set up Ruby
22
20
uses : ruby/setup-ruby@v1
23
21
with :
24
22
ruby-version : ' 3.1'
25
-
26
- - name : Install Jekyll and build site
23
+
24
+ - name : Install Jekyll and Bundler
27
25
run : |
28
26
gem install bundler jekyll
29
- bundle init
30
- echo 'gem "jekyll"' >> Gemfile
31
27
bundle install
32
- bundle exec jekyll new . --force
28
+
29
+ - name : Build the site
30
+ run : |
33
31
bundle exec jekyll build
34
32
35
- - name : Upload Pages artifact manually
36
- uses : actions/upload-artifact@v3
33
+ - name : Upload site to GitHub Pages
34
+ uses : actions/upload-pages- artifact@v2
37
35
with :
38
- name : github-pages
39
36
path : ./_site
40
37
41
38
deploy :
42
39
needs : build
43
40
runs-on : ubuntu-latest
44
41
environment :
45
42
name : github-pages
43
+
46
44
steps :
47
45
- name : Deploy to GitHub Pages
48
- id : deployment
49
46
uses : actions/deploy-pages@v2
50
47
51
48
52
49
50
+
You can’t perform that action at this time.
0 commit comments