From 2fdad27b5ce3729a03966e0378ffc05e258dff0b Mon Sep 17 00:00:00 2001 From: Luca Sbardella Date: Mon, 3 Aug 2020 14:41:24 +0100 Subject: [PATCH 1/4] test --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f46f0a6..871dc85 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,6 +40,10 @@ jobs: - name: upload coverage if: matrix.python-version == '3.8' run: make codecov + - name: test version + run: echo ::set-output name=release::$(make test-version) + - name: test variable value + run: echo "${{ steps.vars.outputs.release }}" release: runs-on: ubuntu-latest From 68fc77c64cc7354f997c262a63387a2f3dce3639 Mon Sep 17 00:00:00 2001 From: Luca Sbardella Date: Mon, 3 Aug 2020 15:28:34 +0100 Subject: [PATCH 2/4] test var --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 871dc85..c6497bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,9 +41,9 @@ jobs: if: matrix.python-version == '3.8' run: make codecov - name: test version - run: echo ::set-output name=release::$(make test-version) + run: echo "::set-output name=PUBLISH::$(make test-version)" - name: test variable value - run: echo "${{ steps.vars.outputs.release }}" + run: echo ${PUBLISH} release: runs-on: ubuntu-latest From a010587a7e03170b9f605bdf8b74e9cb522a36df Mon Sep 17 00:00:00 2001 From: Luca Sbardella Date: Mon, 3 Aug 2020 15:36:42 +0100 Subject: [PATCH 3/4] test var --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6497bb..8c05ae6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,9 +41,10 @@ jobs: if: matrix.python-version == '3.8' run: make codecov - name: test version - run: echo "::set-output name=PUBLISH::$(make test-version)" + id: publish + run: echo ::set-output name=publish::$(make test-version) - name: test variable value - run: echo ${PUBLISH} + run: echo ${{steps.publish.outputs.publish}} release: runs-on: ubuntu-latest From 81a4ce7ce2127dfac01b782fd5992b4f5a94b71c Mon Sep 17 00:00:00 2001 From: Luca Sbardella Date: Mon, 3 Aug 2020 16:14:15 +0100 Subject: [PATCH 4/4] this should work --- .github/workflows/build.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8c05ae6..7ff691b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,11 +40,6 @@ jobs: - name: upload coverage if: matrix.python-version == '3.8' run: make codecov - - name: test version - id: publish - run: echo ::set-output name=publish::$(make test-version) - - name: test variable value - run: echo ${{steps.publish.outputs.publish}} release: runs-on: ubuntu-latest @@ -69,16 +64,15 @@ jobs: - name: install dataclasses if: matrix.python-version == '3.6' run: pip install dataclasses - - name: test version + - name: check if we can publish + id: check run: echo ::set-output name=release::$(make test-version) - - name: test variable value - run: echo $(steps.vars.outputs.release) - name: build python bundle - if: steps.vars.outputs.release == 'yes' + if: steps.check.outputs.release == 'yes' run: "make bundle${{ matrix.python-version }}" - name: release to pypi - if: steps.vars.outputs.release == 'yes' + if: steps.check.outputs.release == 'yes' run: make release-pypi - name: release to github - if: steps.vars.outputs.release == 'yes' && matrix.python-version == '3.8' + if: steps.check.outputs.release == 'yes' && matrix.python-version == '3.8' run: make release-github