Skip to content

Commit

Permalink
Enabled publish-to-pypi, disabled test run
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-sadeghi committed Feb 22, 2021
1 parent cd2c8ec commit 3ded249
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,6 @@ jobs:
pr_allow_empty: true # Creates pull request even if there are no changes
github_token: ${{ secrets.GITHUB_TOKEN }}

# - name: Create Pull Request to merge back release into dev
# uses: peter-evans/create-pull-request@v3
# with:
# token: ${{ secrets.PUSH_ACTION_TOKEN }}
# branch: release
# base: dev
# title: Don't forget to merge release back into dev!
# body: Changes made to the release branch (e.g. hotfixes), plus the version bump.
# delete-branch: false

- name: Create new tag
run: |
REPOSITORY=${INPUT_REPOSITORY:-$GITHUB_REPOSITORY}
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ jobs:
- name: Build distribution 📦
run: python setup.py sdist bdist_wheel

# - name: Publish distribution 📦 to PyPI
# if: startsWith(github.event.ref, 'refs/tags') && contains(env.TAG_MISMATCH, 'false')
# uses: pypa/gh-action-pypi-publish@master
# with:
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
# skip_existing: true

- name: Publish distribution 📦 to TestPyPI
- name: Publish distribution 📦 to PyPI
if: startsWith(github.event.ref, 'refs/tags') && contains(env.TAG_MISMATCH, 'false')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.TESTPYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_TOKEN }}
skip_existing: true

# - name: Publish distribution 📦 to TestPyPI
# if: startsWith(github.event.ref, 'refs/tags') && contains(env.TAG_MISMATCH, 'false')
# uses: pypa/gh-action-pypi-publish@master
# with:
# user: __token__
# password: ${{ secrets.TESTPYPI_TOKEN }}
# repository_url: https://test.pypi.org/legacy/

# Not a good idea: if a non-conforming tag is push, e.g. random_tag, it
# first gets deleted by cleanup-tags.yml, and then publish-to-pypi.yml gets
Expand Down

0 comments on commit 3ded249

Please sign in to comment.