From 427351db81469d8065b4632ae201c9d26e1f8062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 10 Aug 2021 08:29:30 +0200 Subject: [PATCH] Add missing publish --- .github/workflows/main.yaml | 13 +++++++++++++ ci/config.yaml | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6848720..5bf28d5 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -5,6 +5,9 @@ on: push: pull_request: +env: + HAS_SECRETS: ${{ secrets.HAS_SECRETS }} + jobs: build: name: Continuous integration @@ -26,3 +29,13 @@ jobs: - run: pipenv run pytest - run: mv sphinx-prompt sphinx_prompt - run: pipenv run prospector --output=pylint sphinx_prompt + - run: mv sphinx_prompt sphinx-prompt + + - name: Login to pypi + run: | + echo "[pypi]" > ~/.pypirc + echo "username = sbrunner" >> ~/.pypirc + echo "password = ${{ secrets.PYPI_PASSWORD }}" >> ~/.pypirc + if: env.HAS_SECRETS == 'HAS_SECRETS' + - name: Publish + run: c2cciutils-publish diff --git a/ci/config.yaml b/ci/config.yaml index 0d45f03..fdc922b 100644 --- a/ci/config.yaml +++ b/ci/config.yaml @@ -9,3 +9,7 @@ checks: codespell: ignore_re: - CHANGELOG\.md + +publish: + docker: + images: []