Skip to content

Commit

Permalink
Publish Release workflow (#15)
Browse files Browse the repository at this point in the history
* added release workflow

* Update .github/workflows/upload.yml

Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>

* Update .github/workflows/upload.yml

Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>

* Update .github/workflows/upload.yml

* Update .github/workflows/upload.yml

Co-authored-by: antalszava <antalszava@gmail.com>

Co-authored-by: antalszava <antalszava@gmail.com>
  • Loading branch information
Jaybsoni and antalszava committed Nov 8, 2021
1 parent ae440d1 commit 77c3a4a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload plugin to PyPi on Github release

on:
release:
types: [published]

jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

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

- name: Build and install Plugin
run: |
python -m pip install --upgrade pip wheel
python setup.py bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI }}

0 comments on commit 77c3a4a

Please sign in to comment.