File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ name: Documentation
33on :
44 push :
55 branches : [ main ]
6- paths :
6+ paths :
77 - .github/workflows/docs.yml
88 - .jazzy.yaml
99 - " Sources/**"
1010
1111jobs :
1212 deploy :
13- runs-on : macos -latest
13+ runs-on : ubuntu -latest
1414
1515 steps :
1616 - name : Cancel Previous Runs
1919 access_token : ${{ github.token }}
2020 workflow_id : 1778578
2121 - uses : actions/checkout@v2
22- - name : Publish Jazzy Docs
23- uses :
steven0351/[email protected] 24- with :
25- personal_access_token : ${{ secrets.DOCS_ACCESS_TOKEN }}
22+ - uses : actions/setup-ruby@v1
23+ - name : Bundler Install
24+ run : |
25+ gem install bundler
26+ bundle install --jobs 4 --retry 3
27+ - name : Generate Jazzy Docs
28+ run : jazzy
29+ - name : Publish to GitHub Pages
30+ run : |
31+ cd docs
32+ git init
33+ git config user.name ${{ github.actor }}
34+ git config user.email ${{ github.actor }}@users.noreply.github.com
35+ git add .
36+ git commit -m 'Deploy updated Jazzy docs'
37+ git push -f https://${{ secrets.DOCS_ACCESS_TOKEN }}@github.com/${{ github.repository }}.git master:gh-pages
You can’t perform that action at this time.
0 commit comments