2.0.1a2 #6
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 to PyPI | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Setup Build Env | |
run: | | |
npm install --global yarn | |
npm install react-collapsed | |
- name: Build Extension in Dev Mode | |
run: | | |
pip install -e .[full] | |
- name: Generate description files | |
run: | | |
python generate_description_files.py | |
- name: Build Wheel | |
run: | | |
python -m pip install --upgrade build && | |
python -m build | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tvb-ext-xircuits-wheel | |
path: dist | |
- name: Publish to PyPI | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_KEY }} | |
run: | | |
pip install twine | |
twine upload dist/* |