Skip to content

Commit 5389af0

Browse files
committed
Update cd for public deployment
1 parent 5fde6f6 commit 5389af0

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/cd.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ jobs:
1414
uses: actions/setup-python@v1
1515
with:
1616
python-version: '3.7'
17+
- name: Deploy MkDocs
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
run: |
21+
pip install -e .[dev]
22+
remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
23+
git remote rm origin
24+
git remote add origin "${remote_repo}"
25+
mkdocs gh-deploy --force
1726
- name: Install dependencies
1827
run: |
1928
python -m pip install --upgrade pip
@@ -24,8 +33,4 @@ jobs:
2433
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2534
run: |
2635
python setup.py sdist bdist_wheel
27-
twine upload --repository testpypi dist/*
28-
- name: Publish docs
29-
run: |
30-
pip install .[dev]
31-
mkdocs gh-deploy
36+
twine upload dist/*

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pyodi
3-
version = 0.1.0
3+
version = 0.0.1
44
author = Pyodi
55
description = Object Detection Insights
66
long_description = file: README.md

0 commit comments

Comments
 (0)