Skip to content

Commit

Permalink
Prepare for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
AdvancedImagingUTSW committed Aug 30, 2024
1 parent 8e8e03f commit 9c0a111
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 4 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: deploy

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
python-version: ["3.9"]
operating-system: [windows-latest]
steps:
- uses: actions/checkout@v3
- name: Create .pypirc file
shell: pwsh
run: |
@"
[distutils]
index-servers =
pypi
navigate-at-scale
[pypi]
repository: https://upload.pypi.org/legacy/
username: __token__
password: $env:TWINE_API_KEY

[navigate-at-scale]
repository: https://upload.pypi.org/legacy/
username: __token__
password: $env:TWINE_API_KEY
"@ | Set-Content -Path $env:USERPROFILE\.pypirc
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools build twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
run: |
git tag
python -m build
twine upload -r navigate-at-scale dist/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ __pycache__/
*_autosummary*
docs/build/*
*DS_Store
/.vscode
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "navigate-at-scale"
description = "High-Throughput Tissue Imaging."
description = "A navigate plugin for high-throughput imaging with robotics."
authors = [{name = "The Dean Lab, UT Southwestern Medical Center"}]
readme = "README.md"
license = {file = "LICENSE.md"}
Expand Down

0 comments on commit 9c0a111

Please sign in to comment.