Skip to content

Commit b582ecf

Browse files
Fix release CI (#51)
* Update yaml file * Use OIDC as a trusted publisher to publish on PyPI * Fix typo * Publish to release with the right branch * Fix job dependency --------- Co-authored-by: michaelshin <[email protected]>
1 parent 0d0f1e1 commit b582ecf

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.github/workflows/build-and-publish-new-version.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
required: true
99

1010
jobs:
11-
build:
11+
build-and-publish:
1212
name: Build DeepView.Profile
1313
runs-on: ubuntu-latest
1414
steps:
@@ -42,24 +42,7 @@ jobs:
4242
with:
4343
name: ${{ github.event.inputs.tag }}
4444
path: dist/*${{ github.event.inputs.tag }}*
45-
46-
publish-release:
47-
name: Publish Release
48-
needs: build
49-
runs-on: ubuntu-latest
50-
51-
steps:
52-
- name: Checkout
53-
uses: actions/checkout@v3
54-
with:
55-
fetch-depth: 0
56-
57-
- name: Download artifact
58-
uses: actions/download-artifact@v3
59-
with:
60-
name: ${{ github.event.inputs.tag }}
61-
path: dist
62-
45+
6346
- name: Publish a release
6447
run: |
6548
RELEASE_NOTES="$(git log $(git describe --abbrev=0 --tags).. --merges --pretty=format:"%s %b" | cut -f 4,7- -d ' ')"
@@ -77,7 +60,7 @@ jobs:
7760
7861
publish-to-test-pypi:
7962
name: Publish to Test PyPI
80-
needs: publish-release
63+
needs: build-and-publish
8164
runs-on: ubuntu-latest
8265
environment: Test
8366
concurrency: Test

0 commit comments

Comments
 (0)