From 86f4aebfe4614a64204b1e4980f1c7d34cb83113 Mon Sep 17 00:00:00 2001 From: Runar Ask Johannessen Date: Thu, 22 Jun 2023 08:38:56 +0200 Subject: [PATCH] move publish job back --- .github/workflows/myworkflow.yml | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/myworkflow.yml b/.github/workflows/myworkflow.yml index 014c708..6dadef8 100644 --- a/.github/workflows/myworkflow.yml +++ b/.github/workflows/myworkflow.yml @@ -1,9 +1,9 @@ name: myworkflow on: - push: - branches: - - main + # push: + # branches: + # - main release: types: - published @@ -28,21 +28,21 @@ jobs: python -m build # # TODO: publish should be separate job to minimize "permissions: id-token: write" scope - # - name: publish - # if: github.event_name == 'release' - # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # repository-url: https://test.pypi.org/legacy/ - - publish-job: - name: publish job - needs: myjob - permissions: - id-token: write - runs-on: ubuntu-latest - steps: - name: publish if: github.event_name == 'release' uses: pypa/gh-action-pypi-publish@release/v1 with: - repository-url: https://test.pypi.org/legacy/ \ No newline at end of file + repository-url: https://test.pypi.org/legacy/ + + # publish-job: + # name: publish job + # needs: myjob + # permissions: + # id-token: write + # runs-on: ubuntu-latest + # steps: + # - name: publish + # if: github.event_name == 'release' + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # repository-url: https://test.pypi.org/legacy/ \ No newline at end of file