From c98c619f825b556962aeb342d239f67ee33f65cb Mon Sep 17 00:00:00 2001 From: Steve De Jong <971676+stevedejong@users.noreply.github.com> Date: Fri, 11 Oct 2024 22:22:38 -0700 Subject: [PATCH] adjust workflows to publish release tag --- .github/workflows/pull_request.yml | 3 ++- .github/workflows/release.yml | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 58f8680..4520a8c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -5,6 +5,7 @@ on: - master jobs: Code_Analysis_Job: + if: ${{ ! github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest environment: test steps: @@ -23,4 +24,4 @@ jobs: env: ULTRADNS_UNIT_TEST_USERNAME: ${{ secrets.ULTRADNS_UNIT_TEST_USERNAME }} ULTRADNS_UNIT_TEST_PASSWORD: ${{ secrets.ULTRADNS_UNIT_TEST_PASSWORD }} - ULTRADNS_UNIT_TEST_HOST_URL: ${{ secrets.ULTRADNS_UNIT_TEST_HOST_URL }} \ No newline at end of file + ULTRADNS_UNIT_TEST_HOST_URL: ${{ secrets.ULTRADNS_UNIT_TEST_HOST_URL }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1a9215..a4b6a18 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,6 @@ on: - master jobs: Code_Analysis_Job: - if: ${{ ! github.event.pull_request.head.repo.fork }} runs-on: ubuntu-latest environment: test steps: @@ -50,6 +49,11 @@ jobs: - name: Creating python Package run: hatch build + - + name: create release Tag + run: | + git tag ${{ env.RELEASE_VERSION }} + git push origin ${{ env.RELEASE_VERSION }} - name: Publishing python Package uses: pypa/gh-action-pypi-publish@v1.10.1