From fd7a21ea4974d4c28330cfe010e0894eb29acb61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcin=20W=C4=85troba?= <markowanga@gmail.com>
Date: Mon, 9 Aug 2021 20:48:59 +0200
Subject: [PATCH] Fix package publishing

---
 .github/workflows/python-master.yml  | 3 ++-
 .github/workflows/python-release.yml | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/python-master.yml b/.github/workflows/python-master.yml
index 186833f..315683c 100644
--- a/.github/workflows/python-master.yml
+++ b/.github/workflows/python-master.yml
@@ -76,4 +76,5 @@ jobs:
                 run: |
                     poetry version "$(poetry version --short)-beta.${GITHUB_RUN_NUMBER}"
                     poetry build
-                    poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
+                    poetry config repositories.theliverpypi https://nexus.theliver.pl/repository/pypi-registry/
+                    poetry publish -r theliverpypi --username ${{ secrets.THELIVER_PYPI_USER }} --password ${{ secrets.THELIVER_PYPI_PASS }}
diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml
index 7b1a2fd..ddfee7c 100644
--- a/.github/workflows/python-release.yml
+++ b/.github/workflows/python-release.yml
@@ -28,4 +28,5 @@ jobs:
                 run: |
                     poetry version "$(git describe --tags --abbrev=0)"
                     poetry build
-                    poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
+                    poetry config repositories.theliverpypi https://nexus.theliver.pl/repository/pypi-registry/
+                    poetry publish -r theliverpypi --username ${{ secrets.THELIVER_PYPI_USER }} --password ${{ secrets.THELIVER_PYPI_PASS }}
-- 
GitLab