3.0.1 #58
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: Push to PyPI | |
on: | |
release: | |
types: [released, prereleased] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
- name: Set up Python | |
uses: actions/setup-python@v4.7.0 | |
with: | |
python-version: 3.8 | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | |
- name: Install poetry | |
uses: Gr1N/setup-poetry@v8 | |
- name: Build | |
run: | | |
poetry version ${{ steps.get_version.outputs.VERSION }} | |
- name: Build and publish to pypi | |
uses: JRubics/poetry-publish@v1.6 | |
with: | |
pypi_token: ${{ secrets.pypi_password_sx_did_lib }} |