Skip to content

Commit

Permalink
Merge pull request #72 from openedx/publish-pypi
Browse files Browse the repository at this point in the history
build: Adding functionality for publishing on pypi
  • Loading branch information
awais786 authored Nov 24, 2022
2 parents c301b46 + 63368f4 commit d7aa65b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish package to PyPI

on:
push:
tags:
- '*'

jobs:
push:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v3
with:
python-version: 3.8

- name: Install pip
run: pip install -r requirements/pip.txt

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

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from setuptools import setup

version = '2.1.0'
version = '3.0.0'
description = __doc__.strip().split('\n')[0]
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.rst')) as file_in:
Expand Down Expand Up @@ -81,7 +81,7 @@ def is_requirement(line):


setup(
name='xblock-image-modal',
name='openedx-xblock-image-modal',
version=version,
description=description,
long_description=long_description,
Expand Down

0 comments on commit d7aa65b

Please sign in to comment.