From 4a0d22448bd55df414631bec1999214c36323d6a Mon Sep 17 00:00:00 2001 From: Abdul Majeed Alkattan Date: Tue, 23 Jul 2024 12:16:40 +0200 Subject: [PATCH] fix typo --- .github/workflows/publish.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8eae581..8ea7041 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Git user run: | git config --global user.name "github-actions" - git config --global user.email "alkattan@phiture.com" + git config --global user.email "github-actions@github.com" - name: Install dependencies run: | @@ -32,9 +32,9 @@ jobs: run: bump2version patch # or 'minor' or 'major' depending on the level of version bump you want - name: Get bumped version - id: get_version - run: | - echo "VERSION=$(python setup.py --version)" >> $GITHUB_ENV + id: get_version + run: | + echo "VERSION=$(python setup.py --version)" >> $GITHUB_ENV - name: Create GitHub release env: @@ -50,8 +50,11 @@ jobs: - name: Build package run: python setup.py sdist bdist_wheel - - name: Publish package to PyPI - run: twine upload -u __token__ -p ${{ secrets.SEARCHADS_API_PUBLISH_TOKEN }}dist/* + - name: Publish package + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.SEARCHADS_API_PUBLISH_TOKEN }} + run: twine upload dist/* - name: Clean up run: rm -rf dist build *.egg-info