Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions .github/workflows/release-others.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,25 @@ jobs:
env:
GH_TOKEN: ${{ secrets.DEVOLUTIONSBOT_WRITE_TOKEN }}

- name: Publish Python
if: ${{ inputs.publish_python && !inputs.publish_dry_run }}
run: |
pip install twine
- name: Publish Python to TestPyPI (Dry Run)
if: ${{ inputs.publish_python && inputs.publish_dry_run }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: ./devolutions-crypto-wheels/
verbose: true

if [ '${{ inputs.publish_dry_run }}' == 'true' ]; then
twine upload --verbose --repository testpypi -u "__token__" -p ${{ secrets.PYPI_TEST_API_KEY }} ./devolutions-crypto-wheels/*
else
twine upload --verbose -u "__token__" -p ${{ secrets.PYPI_API_KEY }} ./devolutions-crypto-wheels/*
- name: Publish Python to PyPI
if: ${{ inputs.publish_python && !inputs.publish_dry_run }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./devolutions-crypto-wheels/

git tag "python-v${{ steps.version.outputs.version_native }}"
git push origin "python-v${{ steps.version.outputs.version_native }}"
fi
- name: Tag Python Release
if: ${{ inputs.publish_python && !inputs.publish_dry_run }}
run: |
git tag "python-v${{ steps.version.outputs.version_native }}"
git push origin "python-v${{ steps.version.outputs.version_native }}"

- name: Publish Kotlin to Cloudsmith
if: ${{ inputs.publish_kotlin && !inputs.publish_dry_run }}
Expand Down