File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,11 +17,16 @@ jobs:
1717 sudo gem install bundler
1818 bundle install
1919
20- - name : 🖉 repo
21- run : echo "REPOSITORY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
20+ - name : 🖉 default org
21+ if : env.PAGES_ORGANIZATION == ''
22+ run : echo "PAGES_ORGANIZATION=clarius" >> $GITHUB_ENV
23+
24+ - name : 🖉 default repo
25+ if : env.PAGES_REPOSITORY == ''
26+ run : echo "PAGES_REPOSITORY=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
2227
2328 - name : 🙏 build
24- run : bundle exec jekyll build -b ${{ env.REPOSITORY }}
29+ run : bundle exec jekyll build -b ${{ env.PAGES_REPOSITORY }}
2530 env :
2631 JEKYLL_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2732
3742 - name : 🚀 push
38433944 with :
40- github_token : ${{ secrets.CLARIUS_ACCESS_TOKEN }}
41- repository : clarius /${{ env.REPOSITORY }}
45+ github_token : ${{ secrets.PAGES_ACCESS_TOKEN }}
46+ repository : ${{ env.PAGES_ORGANIZATION }} /${{ env.PAGES_REPOSITORY }}
4247 branch : gh-pages
4348 force : true
4449 directory : ./_site
You can’t perform that action at this time.
0 commit comments