File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 1- name : Build and Deploy
2-
1+ name : " Build and Deploy"
32on :
43 push :
54 branches :
109 - README.md
1110 - LICENSE
1211
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
2021concurrency :
2122 group : " pages"
2223 cancel-in-progress : true
2829 steps :
2930 - name : Checkout
3031 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)
3137
3238 - name : Setup Pages
3339 id : pages
@@ -39,24 +45,21 @@ jobs:
3945 ruby-version : 3.3
4046 bundler-cache : true
4147
42- - name : Install dependencies
43- run : bundle install
44-
4548 - name : Build site
46- run : bundle exec jekyll build -d _site
49+ run : bundle exec jekyll b -d " _site${{ steps.pages.outputs.base_path }}"
4750 env :
48- JEKYLL_ENV : production
51+ JEKYLL_ENV : " production"
4952
5053 - name : Test site
5154 run : |
5255 bundle exec htmlproofer _site \
53- - -disable-external \
54- - -ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
56+ \-\ -disable-external \
57+ \-\ -ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
5558
5659 - name : Upload site artifact
5760 uses : actions/upload-pages-artifact@v3
5861 with :
59- path : _site
62+ path : " _site${{ steps.pages.outputs.base_path }} "
6063
6164 deploy :
6265 environment :
You can’t perform that action at this time.
0 commit comments