From 7d9419abc352ada4f93910b80474f774075e2da0 Mon Sep 17 00:00:00 2001 From: Adam Dinwoodie Date: Mon, 13 Nov 2023 10:28:44 +0000 Subject: [PATCH] Add code for automatically releasing --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4568cdb..74c0243 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,3 +6,23 @@ jobs: with: cygport_file: python-rfc6555.cygport bootstrap_packages: cygport python38-wheel python39-wheel + + github-release: + if: github.ref == format('refs/heads/v{0}', needs.build-test.outputs.cygport-pv) + needs: build-test + permissions: + contents: write + uses: cygporter/workflows/.github/workflows/github-release.yml@v2 + with: + tag_name: v${{ needs.build-test.outputs.cygport-pvr }} + + cygwin-release: + if: github.ref == format('refs/heads/v{0}', needs.build-test.outputs.cygport-pv) + needs: [build-test, github-release] + uses: cygporter/workflows/.github/workflows/cygwin-release.yml@v2 + with: + cygport_file: python-rfc6555.cygport + bootstrap_packages: cygport python38-wheel python39-wheel + tag_name: v${{ needs.build-test.outputs.cygport-pvr }} + secrets: + maintainer_key: ${{ secrets.maintainer_key }}