Skip to content

Commit bf2f9bb

Browse files
authored
Merge pull request #268 from EasyPost/ci_docs
chore: generate docs on CI
2 parents 0f3a2ef + 7ef8e79 commit bf2f9bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+24
-17599
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CI"
1+
name: 'CI'
22

33
on:
44
push:
@@ -14,7 +14,7 @@ jobs:
1414
- name: set up python
1515
uses: actions/setup-python@v4
1616
with:
17-
python-version: "3.11"
17+
python-version: '3.11'
1818
- name: Install Dependencies
1919
run: make install
2020
- name: Check format
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-20.04 # TODO: Python 3.6 doesn't have a binary for 22.04, switch to `latest` once we drop support for Python 3.6
2424
strategy:
2525
matrix:
26-
pythonversion: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
26+
pythonversion: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
2727
steps:
2828
- uses: actions/checkout@v3
2929
- name: set up python
@@ -41,3 +41,22 @@ jobs:
4141
run: venv/bin/coveralls --service=github
4242
- name: Run security analysis
4343
run: make scan
44+
docs:
45+
if: github.ref == 'refs/heads/master'
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Checkout Repository
49+
uses: actions/checkout@v3
50+
- name: set up Python
51+
uses: actions/setup-python@v4
52+
with:
53+
python-version: '3.11'
54+
- name: Install Dependencies
55+
run: make install
56+
- name: Generate Docs
57+
run: make docs
58+
- name: Deploy Docs
59+
uses: peaceiris/actions-gh-pages@v3
60+
with:
61+
github_token: ${{ secrets.GITHUB_TOKEN }}
62+
publish_dir: docs

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*.sublime-*
1919
/MANIFEST
2020
dist
21-
docs/build/
21+
docs
2222
Icon
2323
test
2424
venv

README.md

Lines changed: 1 addition & 1 deletion

docs/easypost.html

Lines changed: 0 additions & 318 deletions
This file was deleted.

docs/easypost/address.html

Lines changed: 0 additions & 492 deletions
This file was deleted.

docs/easypost/api_key.html

Lines changed: 0 additions & 295 deletions
This file was deleted.

docs/easypost/batch.html

Lines changed: 0 additions & 583 deletions
This file was deleted.

docs/easypost/beta.html

Lines changed: 0 additions & 243 deletions
This file was deleted.

docs/easypost/beta/referral.html

Lines changed: 0 additions & 1063 deletions
This file was deleted.

docs/easypost/billing.html

Lines changed: 0 additions & 530 deletions
This file was deleted.

0 commit comments

Comments
 (0)