From e273f34d06af59581dcef4e64fd4353ae65ea8e9 Mon Sep 17 00:00:00 2001 From: kompotkot Date: Wed, 30 Aug 2023 11:05:48 +0000 Subject: [PATCH] Release pypi work with token --- .github/workflows/release.clients.python.yml | 9 ++++----- .github/workflows/release.mooncrawl.yml | 8 ++++---- .github/workflows/release.moonstreamapi.yml | 8 ++++---- .github/workflows/release.moonstreamdb.yml | 8 ++++---- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.clients.python.yml b/.github/workflows/release.clients.python.yml index 437bb72c4..3794f4b5d 100644 --- a/.github/workflows/release.clients.python.yml +++ b/.github/workflows/release.clients.python.yml @@ -13,9 +13,8 @@ jobs: publish: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: "3.9" - name: Install dependencies @@ -24,8 +23,8 @@ jobs: pip install -e .[distribute] - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: "__token__" + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | python setup.py sdist bdist_wheel twine upload dist/* diff --git a/.github/workflows/release.mooncrawl.yml b/.github/workflows/release.mooncrawl.yml index dde24973b..a25341e30 100644 --- a/.github/workflows/release.mooncrawl.yml +++ b/.github/workflows/release.mooncrawl.yml @@ -13,8 +13,8 @@ jobs: publish: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: '3.8' - name: Install dependencies @@ -23,8 +23,8 @@ jobs: pip install -e .[distribute] - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: "__token__" + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | python setup.py sdist bdist_wheel twine upload dist/* diff --git a/.github/workflows/release.moonstreamapi.yml b/.github/workflows/release.moonstreamapi.yml index 754ecbcbf..7d92f7d07 100644 --- a/.github/workflows/release.moonstreamapi.yml +++ b/.github/workflows/release.moonstreamapi.yml @@ -13,8 +13,8 @@ jobs: publish: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: '3.8' - name: Install dependencies @@ -23,8 +23,8 @@ jobs: pip install -e .[distribute] - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: "__token__" + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | python setup.py sdist bdist_wheel twine upload dist/* diff --git a/.github/workflows/release.moonstreamdb.yml b/.github/workflows/release.moonstreamdb.yml index 164b14798..8d4f8e88c 100644 --- a/.github/workflows/release.moonstreamdb.yml +++ b/.github/workflows/release.moonstreamdb.yml @@ -13,8 +13,8 @@ jobs: publish: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: '3.8' - name: Install dependencies @@ -23,8 +23,8 @@ jobs: pip install -e .[distribute] - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: "__token__" + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | python setup.py sdist bdist_wheel twine upload dist/*