File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,19 +30,26 @@ jobs:
3030 refs/heads/main'
3131 , github.ref)
3232 concurrency : release
33- permissions :
34- id-token : write
3533 steps :
3634 - uses : actions/checkout@v3
3735 with :
3836 fetch-depth : 0
39- - name : Python Semantic Release
40- id : release
41- uses : python-semantic-release/python-semantic-release@v9.7.3
37+ - name : Set up Python
38+ uses : actions/setup-python@v4
4239 with :
43- github_token : ${{ secrets.GH_TOKEN }}
44- - name : Publish package distributions to PyPI
45- uses : pypa/gh-action-pypi-publish@release/v1
46- # NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
47- # See https://github.com/actions/runner/issues/1173
48- if : steps.release.outputs.released == 'true'
40+ python-version : 3.11
41+ - name : Install ci requirements
42+ run : pip install -r ci-requirements.txt
43+ - name : Release
44+ run : |
45+ git config --global user.email "infra@bimdata.io"
46+ git config --global user.name "GA"
47+ PYTHONPATH=$PWD python setup.py sdist
48+ PYTHONPATH=$PWD semantic-release version
49+ PYTHONPATH=$PWD twine upload --non-interactive dist/*
50+ PYTHONPATH=$PWD semantic-release publish
51+ env :
52+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53+ PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
54+ TWINE_USERNAME : __token__
55+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments