File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed
Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change 1- name : " Build and Deploy"
1+ name : Build and Deploy
2+
23on :
34 push :
45 branches :
910 - README.md
1011 - LICENSE
1112
12- # Allows you to run this workflow manually from the Actions tab
1313 workflow_dispatch :
1414
1515permissions :
1616 contents : read
1717 pages : write
1818 id-token : write
1919
20- # Allow one concurrent deployment
2120concurrency :
2221 group : " pages"
2322 cancel-in-progress : true
2928 steps :
3029 - name : Checkout
3130 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)
3731
3832 - name : Setup Pages
3933 id : pages
@@ -45,21 +39,24 @@ jobs:
4539 ruby-version : 3.3
4640 bundler-cache : true
4741
42+ - name : Install dependencies
43+ run : bundle install
44+
4845 - name : Build site
49- run : bundle exec jekyll b -d " _site${{ steps.pages.outputs.base_path }}"
46+ run : bundle exec jekyll build -d _site
5047 env :
51- JEKYLL_ENV : " production"
48+ JEKYLL_ENV : production
5249
5350 - name : Test site
5451 run : |
5552 bundle exec htmlproofer _site \
56- \-\ -disable-external \
57- \-\ -ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
53+ - -disable-external \
54+ - -ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
5855
5956 - name : Upload site artifact
6057 uses : actions/upload-pages-artifact@v3
6158 with :
62- path : " _site${{ steps.pages.outputs.base_path }} "
59+ path : _site
6360
6461 deploy :
6562 environment :
You can’t perform that action at this time.
0 commit comments