File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ jobs:
34
34
- name : Check if there is a parent commit
35
35
id : check-parent-commit
36
36
run : |
37
- echo "name=sha::$(git rev-parse --verify --quiet HEAD^)" >> $GITHUB_ENV
37
+ echo "::set-output name=sha::$(git rev-parse --verify --quiet HEAD^)"
38
38
39
39
- name : Detect and tag new version
40
40
id : check-version
41
- if : env .sha
41
+ if : steps.check-parent-commit.outputs .sha
42
42
uses : salsify/action-detect-and-tag-new-version@v2
43
43
with :
44
44
version-command : |
60
60
uses : pypa/gh-action-pypi-publish@release/v1
61
61
with :
62
62
user : __token__
63
- password : ${{ secrets.PYPI_TOKEN }}
64
-
65
- - name : Publish package on TestPyPI
66
- if : " ! steps.check-version.outputs.tag"
67
- uses : pypa/gh-action-pypi-publish@release/v1
68
- with :
69
- user : __token__
70
- password : ${{ secrets.TEST_PYPI_TOKEN }}
71
- repository_url : https://test.pypi.org/legacy/
63
+ password : ${{ secrets.PYPI_API_TOKEN }}
72
64
73
65
- name : Publish the release notes
74
66
uses : release-drafter/release-drafter@v5
You can’t perform that action at this time.
0 commit comments