File tree 1 file changed +22
-11
lines changed
1 file changed +22
-11
lines changed Original file line number Diff line number Diff line change 30
30
uses : actions/checkout@v4
31
31
32
32
- name : Set up Python
33
- uses : actions/setup-python@v4
33
+ uses : actions/setup-python@v2
34
34
with :
35
35
python-version : ' 3.x'
36
36
@@ -51,14 +51,15 @@ jobs:
51
51
with :
52
52
ruby-version : ' 3.x'
53
53
54
- - name : Install dependencies
55
- run : |
56
- gem install bundler
57
- bundle install
54
+ - name : Install Bundler
55
+ run : gem install bundler
56
+
57
+ - name : Install dependencies with Bundler
58
+ run : bundle install
59
+ working-directory : ${{ github.workspace }}
58
60
59
61
- name : Build with Jekyll
60
- run : |
61
- bundle exec jekyll build
62
+ run : bundle exec jekyll build
62
63
env :
63
64
JEKYLL_ENV : production
64
65
@@ -67,18 +68,28 @@ jobs:
67
68
cp -r ./examples_html/* ./_site/examples/
68
69
69
70
- name : Upload artifact
70
- uses : actions/upload-pages- artifact@v3
71
+ uses : actions/upload-artifact@v2
71
72
with :
73
+ name : jekyll-site
72
74
path : ./_site
73
75
74
76
# Deployment job
75
77
deploy :
76
78
environment :
77
79
name : github-pages
78
- url : ${{ steps.deployment.outputs.page_url }}
80
+ url : ${{ steps.deployment.outputs.artifact_url }}
79
81
runs-on : ubuntu-latest
80
82
needs : build
81
83
steps :
84
+ - name : Download artifact
85
+ uses : actions/download-artifact@v2
86
+ with :
87
+ name : jekyll-site
88
+ path : ./site
89
+
82
90
- name : Deploy to GitHub Pages
83
- id : deployment
84
- uses : actions/deploy-pages@v4
91
+ uses : peaceiris/actions-gh-pages@v3
92
+ with :
93
+ github_token : ${{ secrets.GITHUB_TOKEN }}
94
+ publish_dir : ./site
95
+ force_orphan : true
You can’t perform that action at this time.
0 commit comments