Skip to content

chore: update tag job reusable workflow reference (#67) #18

chore: update tag job reusable workflow reference (#67)

chore: update tag job reusable workflow reference (#67) #18

name: Tag and publish
on:
push:
branches:
- main
jobs:
tag:
uses: AllenNeuralDynamics/.github/.github/workflows/release-bump-version.yml@main
secrets:
repo-token: ${{ secrets.SERVICE_TOKEN }}
publish:
needs: tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Pull latest changes
run: git pull origin main
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- 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
with:
password: ${{ secrets.AIND_PYPI_TOKEN }}