File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 name : Deploy and publish
4848 runs-on : ubuntu-latest
4949 needs : build_test
50- if : " github.event_name == 'push' && github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message, 'chore') "
50+ if : " github.event_name == 'push'"
5151 steps :
5252 - name : Setup Extensions
5353 uses : actions/checkout@v2
6767 - name : Install Semantic Release dependencies
6868 run : |
6969 pip3 install --user bump2version
70- npm install -g semantic-release
70+ npm install -g semantic-release@19.0.5
7171 npm install -g @semantic-release/changelog
7272 npm install -g @semantic-release/exec
7373 npm install -g @semantic-release/git
8585 env :
8686 GH_TOKEN : ${{ secrets.GH_TOKEN }}
8787 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
88- run : |
89- echo "The next release is ${{ steps.next_release.outputs.NEXT_RELEASE }}"
90- npx semantic-release
91-
92- - name : Build project
93- if : ${{ steps.next_release.outputs.NEXT_RELEASE != null }}
94- run : |
95- pip install -U pip
96- pip install build
97- python -m build
98-
99- - name : Publish to pypi
100- if : ${{ steps.next_release.outputs.NEXT_RELEASE != null }}
101- uses : pypa/gh-action-pypi-publish@release/v1
102- with :
103- user : ${{ secrets.PYPI_USER }}
104- password : ${{ secrets.PYPI_PASSWORD }}
105- repository_url : https://upload.pypi.org/legacy/
88+ run : echo "The next release is ${{ steps.next_release.outputs.NEXT_RELEASE }}"
You can’t perform that action at this time.
0 commit comments