Skip to content

Update Example_RTModel_Walkthrough_colab #19

Update Example_RTModel_Walkthrough_colab

Update Example_RTModel_Walkthrough_colab #19

Workflow file for this run

name: PyPI
on:
workflow_dispatch:
workflow_run:
workflows: ["Build"]
types:
- completed
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: publish_pypi
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.SECRET_PYPI }}
- name: Create Github release
if: steps.publish_pypi.outcome == 'success'
env:
GITHUB_TOKEN: ${{ secrets.CLI_GH_TOKEN }}
run: |
VERSION=$(python setup.py --version)
gh release create v$VERSION --title $VERSION --generate-notes