Version 2 (alpha) #22
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: Publish | |
on: | |
release: | |
types: [created] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: lucas_env | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7' | |
- name: Install dependencies, for extras and publishing too | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel build twine | |
pip install .[azureblob,azuretable,gcpstorage,awss3] | |
- name: Build | |
run: | | |
python -m build | |
- name: Archive dist artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: dist/* | |
- name: Publish | |
env: | |
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
run: | | |
python -m twine upload dist/* |