Skip to content

Commit a261043

Browse files
authored
Merge pull request #2 from IBM/IdanAdar-patch-1
Update workflows
2 parents 9265d77 + 8b016fb commit a261043

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.github/workflows/create-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Create Release
22
on:
3-
release:
4-
types:
5-
- created
3+
push:
4+
branches:
5+
- main
66
jobs:
77
build:
88
name: Create Release
@@ -20,8 +20,8 @@ jobs:
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
2222
with:
23-
tag_name: 0.0.${{ github.run_number }}
24-
release_name: Release 0.0.${{ github.run_number }}
23+
tag_name: v0.0.${{ github.run_number }}
24+
release_name: Release v0.0.${{ github.run_number }}
2525
body: |
2626
${{ steps.Changelog.outputs.changelog }}
2727
draft: false

.github/workflows/publish-release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
name: Publish a new release
55

66
on:
7-
push:
8-
branches:
9-
- main
10-
7+
workflow_run:
8+
workflows: ["create-release"]
9+
branches: [main]
10+
types:
11+
- completed
1112
jobs:
1213
build:
1314
runs-on: ubuntu-latest
@@ -31,11 +32,6 @@ jobs:
3132
--wheel
3233
--outdir dist/
3334
.
34-
- name: Publish distribution to Test PyPI
35-
uses: pypa/gh-action-pypi-publish@master
36-
with:
37-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
38-
repository_url: https://test.pypi.org/legacy/
3935
- name: Publish distribution to PyPI
4036
if: startsWith(github.ref, 'refs/tags')
4137
uses: pypa/gh-action-pypi-publish@master

0 commit comments

Comments
 (0)