Skip to content

Commit 2af1fe3

Browse files
committed
Update documentation script to run on Ubuntu
1 parent 189a320 commit 2af1fe3

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/docs.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Documentation
33
on:
44
push:
55
branches: [ main ]
6-
paths:
6+
paths:
77
- .github/workflows/docs.yml
88
- .jazzy.yaml
99
- "Sources/**"
1010

1111
jobs:
1212
deploy:
13-
runs-on: macos-latest
13+
runs-on: ubuntu-latest
1414

1515
steps:
1616
- name: Cancel Previous Runs
@@ -19,7 +19,19 @@ jobs:
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

0 commit comments

Comments
 (0)