Merge pull request #3 from AGISwarm/typing_and_thread_safety #1
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: 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/* | |