Skip to content

Commit cb9ff96

Browse files
committed
Added soca publishing workflow
1 parent e273fb2 commit cb9ff96

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Publish soca package to PyPi
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.10'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
- name: Build and publish
26+
env:
27+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
run: |
30+
python setup.py sdist bdist_wheel
31+
twine upload dist/*

setup.cfg

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[metadata]
22
name = soca
33
version = attr: soca.__version__
4-
author = Daniel Rodríguez Mariblanca, Miguel Arroyo Márquez
5-
author_email = daniel.rodriguez.mariblanca@alumnos.upm.es, miguel.arroyo.marquez@alumnos.upm.es
4+
author = Daniel Rodríguez Mariblanca, Miguel Arroyo Márquez, Esteban Gonzaled, Daniel Garijo
5+
author_email = miguel.arroyo.marquez@alumnos.upm.es, daniel.garijo@upm.es
66
description = A python package that given an organization/user name, it will create a software catalog for browsing all repositories or just a single repository in a minimalist card.
77
long_description = file: README.md
88
long_description_content_type = text/markdown
@@ -42,5 +42,3 @@ where = src
4242
[options.entry_points]
4343
console_scripts =
4444
soca = soca.__main__:cli
45-
46-

0 commit comments

Comments
 (0)