Skip to content

Public Release

Public Release #48

Workflow file for this run

name: Public Release
on:
push:
tags: "*.*.*"
paths-ignore:
- "setup.py"
- "*.yml"
- "*.md"
- "src/skyflow/version.py"
workflow_dispatch:
inputs:
branch:
description: "Branch to run on"
required: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PAT_ACTIONS }}
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PUBLISH_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*