Tested publishing ci #12
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: Publishing | |
on: [push] | |
jobs: | |
test: | |
uses: ./.github/workflows/test.yml | |
publish: | |
name: Publish the client to the public registry | |
needs: [test] | |
runs-on: ubuntu-latest | |
env: | |
PYPIRC: ${{ secrets.PYPIRC }} | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: | | |
VERSION=`git log -1 --date=format:"%y%m%d%H" --format=%cd-%h|head` | |
echo "version $VERSION" | |
sed -i -E "s/(VERSION = \")(\d\.\d\.)(.*)(\")/\1\2.$VERSION\4/1" setup.py | |
cat setup.py |