Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- run: touch .env
- run: docker-compose pull

# In this step, this action saves a list of existing images,
Expand All @@ -41,7 +41,9 @@ jobs:
# Runs a single command using the runners shell
- name: Run Unit Tests
run: docker-compose run web poetry run python -m unittest

- name: Publish to PyPi
- name: Build and publish to pypi
if: github.ref == 'refs/heads/master'
run: docker-compose run web poetry build && docker-compose run web poetry publish --username=${{ secrets.PYPI_USERNAME }} --password=${{ secrets.PYPI_PASSWORD }}
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
ignore_dev_requirements: "yes"