Skip to content

Commit

Permalink
chore: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Nov 26, 2024
1 parent 0caafed commit b0525a0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish package to PyPi

on:
release:
types: [published]

jobs:

push:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/harmony-plugin')
defaults:
run:
working-directory: ./tutor-contrib-harmony-plugin

steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.12

- name: Install Dependencies
run: pip install setuptools wheel

- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}
packages-dir: tutor-contrib-harmony-plugin/dist
2 changes: 1 addition & 1 deletion tutor-contrib-harmony-plugin/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def load_about():


setup(
name="tutor-contrib-harmony-plugin",
name="tutor-contrib-harmony",
version=ABOUT["__version__"],
url="https://github.com/openedx/openedx-k8s-harmony",
project_urls={
Expand Down

0 comments on commit b0525a0

Please sign in to comment.