Skip to content

Commit

Permalink
Merge pull request #19 from plasma-umass/pypi-release-upload
Browse files Browse the repository at this point in the history
PyPI automatic release upload
  • Loading branch information
emeryberger authored Oct 2, 2023
2 parents 13965fd + 4e9af8f commit 32c33b8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 39 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/python-publish.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
release:
types: [published]

permissions:
contents: read

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 32c33b8

Please sign in to comment.