From 44ffd45050f3d8fcae12a106e0e7689d13dd41d4 Mon Sep 17 00:00:00 2001 From: Juliuz Christian Llanillo Date: Tue, 6 Sep 2022 15:10:53 +0800 Subject: [PATCH] updated github actions file --- .github/workflows/main.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 08ee1b5..f4af893 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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, @@ -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: poetry build && poetry publish --username=${{ secrets.PYPI_USERNAME }} --password=${{ secrets.PYPI_PASSWORD }} \ No newline at end of file + uses: JRubics/poetry-publish@v1.13 + with: + pypi_token: ${{ secrets.PYPI_TOKEN }} + ignore_dev_requirements: "yes" \ No newline at end of file