Skip to content

Commit

Permalink
fix(github): fixes in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Lluis Santos committed Nov 12, 2020
1 parent 5c1f0f6 commit 5096357
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
coverage:
build-n-deploy:
runs-on: ubuntu-latest
steps:
- name: Obtaining the code
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [ published ]

jobs:
coverage:
build-n-deploy:
runs-on: ubuntu-latest
steps:
- name: Obtaining the code
Expand All @@ -16,10 +16,13 @@ jobs:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install wheel
python setup.py sdist bdist_wheel
- name: Deploy PyPi
env:
PYPI_PASS: ${{ secrets.RELEASE_PYPI_TOKEN }}
run: |
twine upload -u __token__ -p ${PYPI_PASS} dist/*
source venv/bin/activate
pip install twine
twine upload -u __token__ -p ${PYPI_PASS} --repository testpypi dist/*

0 comments on commit 5096357

Please sign in to comment.