Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Add GitHub Action to release to PyPI (#44)
Browse files Browse the repository at this point in the history
Summary:
- On a GitHub release creation Github actions will build + upload versions of xar

Addresses making releases happen so we don't get so stale again as reported in #43

Pull Request resolved: #44

Reviewed By: terrelln

Differential Revision: D25277583

Pulled By: cooperlees

fbshipit-source-id: f0c98801bb46057b4736b445126256d16f7cf762
  • Loading branch information
cooperlees authored and facebook-github-bot committed Dec 2, 2020
1 parent 2d389f2 commit ed011cb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/actions/workflows/pypi_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: pypi_upload

on:
release:
types: created

jobs:
build:
name: PyPI Upload
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2

- name: Install latest pip, setuptools, twine + wheel
run: |
python -m pip install --upgrade pip setuptools twine wheel
- name: Build wheels
run: |
python setup.py bdist_wheel
python setup.py sdist
- name: Upload to PyPI via Twine
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload --verbose -u '__token__' dist/*

0 comments on commit ed011cb

Please sign in to comment.