Skip to content

release: v0.0.2 (#7) #2

release: v0.0.2 (#7)

release: v0.0.2 (#7) #2

Workflow file for this run

---
name: Continuous-Deployment
permissions:
contents: write
id-token: write
packages: write
actions: write
checks: write
concurrency:
group: production
cancel-in-progress: true
on:
push:
branches: [main]
jobs:
deployment:
runs-on: ubuntu-latest
environment: production
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
echo "📦 Installing Python dependencies."
python -m pip install --upgrade pip
if [ -f requirements/production.txt ]; then
pip install -r requirements/production.txt;
fi
- name: Upgrade build tools
run: python -m pip install --upgrade build
- name: Build the package
run: python -m build
- name: Upload to PyPI
if: ${{ vars.DEPLOY_TO_PYPI == 'yes' }}
env:
TWINE_PASSWORD: ${{ secrets.PYPI_KEY }}
run: python -m twine upload dist/*
- name: Done
run: echo "🎉 Deployment complete!"