Skip to content

Commit

Permalink
ci: publish to pypi (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyoung84 authored Mar 28, 2024
1 parent 2388f51 commit 0e2e1ba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 52 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/init.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/tag_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,24 @@ jobs:
tags: |
ghcr.io/allenneuraldynamics/aind-airflow-jobs:${{ needs.tag.outputs.new_version }}
ghcr.io/allenneuraldynamics/aind-airflow-jobs:latest
pypi:
runs-on: ubuntu-latest
needs: tag
steps:
- uses: actions/checkout@v3
- name: Pull latest changes
run: git pull origin main
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install --upgrade setuptools wheel twine build
python -m build
twine check dist/*
- name: Publish on PyPI
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
password: ${{ secrets.AIND_PYPI_TOKEN }}

0 comments on commit 0e2e1ba

Please sign in to comment.