Skip to content

Commit

Permalink
Added soca publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarijo committed Apr 5, 2023
1 parent e273fb2 commit cb9ff96
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Publish soca package to PyPi

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
6 changes: 2 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[metadata]
name = soca
version = attr: soca.__version__
author = Daniel Rodríguez Mariblanca, Miguel Arroyo Márquez
author_email = daniel.rodriguez.mariblanca@alumnos.upm.es, miguel.arroyo.marquez@alumnos.upm.es
author = Daniel Rodríguez Mariblanca, Miguel Arroyo Márquez, Esteban Gonzaled, Daniel Garijo
author_email = miguel.arroyo.marquez@alumnos.upm.es, daniel.garijo@upm.es
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.
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down Expand Up @@ -42,5 +42,3 @@ where = src
[options.entry_points]
console_scripts =
soca = soca.__main__:cli


0 comments on commit cb9ff96

Please sign in to comment.