Skip to content

Merge pull request #3 from AGISwarm/typing_and_thread_safety #1

Merge pull request #3 from AGISwarm/typing_and_thread_safety

Merge pull request #3 from AGISwarm/typing_and_thread_safety #1

name: Tag creation
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
pypi:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Update VERSION file
run: echo "${{ github.ref_name }}" | cut -c 2- > VERSION
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[build,publish]'
- name: Build and publish
env:
PIP_USERNAME: ${{ secrets.PIP_USERNAME }}
PIP_PASSWORD: ${{ secrets.PIP_PASSWORD }}
PIP_INDEX_EXTRA_URL_REMAINDER: ${{ secrets.PIP_INDEX_EXTRA_URL_REMAINDER }}
PIP_PROTOCOL: ${{ vars.PIP_PROTOCOL }}
run: |
python -m build
twine upload --verbose \
--repository-url $PIP_PROTOCOL://$PIP_INDEX_EXTRA_URL_REMAINDER \
-u $PIP_USERNAME -p $PIP_PASSWORD dist/*