Skip to content

Commit feea653

Browse files
committed
Updated CI scripts
1 parent 6911342 commit feea653

3 files changed

Lines changed: 31 additions & 71 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,9 @@ on:
66
- master
77

88
jobs:
9-
deploy_docs:
10-
11-
runs-on: ubuntu-latest
12-
13-
steps:
14-
- name: Check-out
15-
uses: actions/checkout@v2
16-
- name: Set up Python
17-
uses: actions/setup-python@v2
18-
with:
19-
python-version: 3.9
20-
cache: 'pip'
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install flake8 pytest
25-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
26-
- name: Build distribution
27-
run: python setup.py sdist bdist_wheel
28-
- name: Deploy
29-
run: twine upload -r pypi dist/*
30-
env:
31-
TWINE_USERNAME: ${{ secrets.DEPLOY_USER }}
32-
TWINE_PASSWORD: ${{ secrets.DEPLOY_PASSWORD }}
9+
pypi:
10+
name: Pypi
11+
uses: Bernardo-MG/github-workflow/.github/workflows/python_deploy_pypi.yml@v1
12+
secrets:
13+
username: ${{ secrets.DEPLOY_USER }}
14+
password: ${{ secrets.DEPLOY_PASSWORD }}

.github/workflows/deploy_docs.yml

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

.github/workflows/testing.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,28 @@ on: [push, pull_request]
55
jobs:
66
tests:
77
name: Tests
8-
uses: Bernardo-MG/github-workflow/.github/workflows/python_testing.yml@develop
8+
uses: Bernardo-MG/github-workflow/.github/workflows/python_testing.yml@develop
9+
10+
deploy_develop_docs:
11+
name: Deploy development docs
12+
needs: tests
13+
uses: Bernardo-MG/github-workflow/.github/workflows/python_deploy_site.yml@develop
14+
with:
15+
branch: develop
16+
host: docs.bernardomg.com
17+
secrets:
18+
url: ${{ secrets.DEPLOY_DOCS_DEVELOP_SITE }}
19+
username: ${{ secrets.DEPLOY_DOCS_DEVELOP_USER }}
20+
password: ${{ secrets.DEPLOY_DOCS_DEVELOP_PASSWORD }}
21+
22+
deploy_docs:
23+
name: Deploy docs
24+
needs: tests
25+
uses: Bernardo-MG/github-workflow/.github/workflows/python_deploy_site.yml@develop
26+
with:
27+
branch: master
28+
host: docs.bernardomg.com
29+
secrets:
30+
url: ${{ secrets.DEPLOY_DOCS_SITE }}
31+
username: ${{ secrets.DEPLOY_DOCS_USER }}
32+
password: ${{ secrets.DEPLOY_DOCS_PASSWORD }}

0 commit comments

Comments
 (0)