Skip to content

Commit

Permalink
move publish job back
Browse files Browse the repository at this point in the history
  • Loading branch information
equinor-ruaj committed Jun 22, 2023
1 parent 525ad8f commit 86f4aeb
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/myworkflow.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: myworkflow

on:
push:
branches:
- main
# push:
# branches:
# - main
release:
types:
- published
Expand All @@ -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/
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/

0 comments on commit 86f4aeb

Please sign in to comment.