Skip to content

Commit

Permalink
add pypi CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Pressel authored and dpressel committed Apr 5, 2023
1 parent 3b896d7 commit 27b025f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish to PyPI

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel
- name: Build Package
run: |
python setup.py sdist bdist_wheel
cd ..
- name: Publish AlexaTM Package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Alexa Teacher Model
# Alexa Teacher Models

This is the official Alexa Teacher Model program github page.

Expand Down

0 comments on commit 27b025f

Please sign in to comment.