Skip to content

Commit

Permalink
Add the publish
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 1, 2021
1 parent eb86124 commit 74d5692
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
push:
pull_request:

env:
HAS_SECRETS: ${{ secrets.HAS_SECRETS }}

jobs:
build:
name: Continuous integration
Expand All @@ -20,3 +23,14 @@ jobs:

- name: Checks
run: c2cciutils-checks

- name: Init pypi
run: |
echo "[pypi]" > ~/.pypirc
echo "username = sbrunner" >> ~/.pypirc
echo "password = ${{ secrets.PYPI_PASSWORD }}" >> ~/.pypirc
pip install --user wheel twine
if: env.HAS_SECRETS == 'HAS_SECRETS'
- name: Publish
run: c2cciutils-publish
if: env.HAS_SECRETS == 'HAS_SECRETS'
4 changes: 4 additions & 0 deletions ci/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ checks:
backport.yaml: False
clean.yaml: False
audit.yaml: False

publish:
docker:
images: []
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
version=VERSION,
description="A simple library to get colors in the bash terminal",
long_description=README,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 74d5692

Please sign in to comment.