v2.0.0 Release #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Distributables | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build-n-upload: | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/bitmart-python-sdk-api | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- run: pip install wheel | |
- name: Build new distributables | |
run: python setup.py sdist bdist_wheel | |
- name: Upload distributables to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
- name: Post release cleaning | |
run: | | |
python setup.py clean --all | |
rm dist/* |