Skip to content

Commit

Permalink
[#2]: Improve the publish pipeline (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
NymanRobin authored Oct 1, 2021
1 parent 1e0cc90 commit 163ac88
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build and publish Fellowship to PyPI and TestPyPI

on: push
on:
push
branches:
- master

jobs:
build-n-publish:
Expand All @@ -21,6 +24,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: python setup.py sdist
- name: Publish distribution to Test PyPI
if: "!startsWith(github.ref, 'refs/tags')"
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_FELLOWSHIP_TOKEN }}
Expand All @@ -29,4 +33,4 @@ jobs:
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_FELLOWSHIP_TOKEN }}
password: ${{ secrets.PYPI_FELLOWSHIP_TOKEN }}
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ The code and the issues are hosted on `GitHub

The project is licensed under `BSD-3-Clause
<https://github.com/nokia/contract-test-framework/blob/main/LICENSE>`_.

The documentation is hosted on `read_the_docs
<https://contract-test-framework.readthedocs.io/en/latest/?>`_
2 changes: 1 addition & 1 deletion fellowship/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Licensed under the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

__version__ = '0.0.1'
__version__ = '0.0.2'

0 comments on commit 163ac88

Please sign in to comment.