Merge pull request #9 from PSNAppz/1.0 #2
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: SR Models PyPI Publish | |
on: | |
push: | |
tags: | |
- "*" | |
branches-ignore: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
publish-to-pypi: | |
name: Publish to PyPI For Models Tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- uses: actions/checkout@v3 | |
- name: Install build dependencies | |
run: pip install build | |
- name: Build distribution | |
run: python -m build ./openg2p-sr-models | |
- name: Publish | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
packages-dir: ./openg2p-sr-models/dist/ |