This repository was archived by the owner on Jun 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +32
-51
lines changed
Expand file tree Collapse file tree 2 files changed +32
-51
lines changed Original file line number Diff line number Diff line change 4545 pip install coveralls
4646 coveralls
4747
48- tag :
48+ tag-and-release :
4949 runs-on : ubuntu-latest
5050 if : github.event_name == 'push' && contains(github.ref, 'release')
5151 needs : test
6565 - uses : rickstaa/action-create-tag@v1
6666 with :
6767 tag : ${{ env.CURRENT_VERSION }}
68+ - uses : ncipollo/release-action@v1
69+ with :
70+ token : ${{ secrets.GITHUB_TOKEN }}
71+ generateReleaseNotes : true
72+ tag : ${{ env.CURRENT_VERSION }}
73+ - name : Install dependencies
74+ run : |
75+ python -m pip install --upgrade pip
76+ - name : Prepare for dist
77+ run : |
78+ python setup.py sdist
79+ - name : Publish package
80+ uses : pypa/gh-action-pypi-publish@release/v1
81+ with :
82+ user : __token__
83+ password : ${{ secrets.PYPI_API_TOKEN }}
6884
85+ abort :
86+ runs-on : ubuntu-latest
87+ needs : tag-and-release
88+ if : always() && contains(needs.tag-and-release.result, 'failure')
89+ steps :
90+ - uses : actions/checkout@v2
91+ with :
92+ submodules : ' recursive'
93+ - uses : actions/github-script@v6
94+ with :
95+ github-token : ${{secrets.GITHUB_TOKEN}}
96+ script : |
97+ const { owner, repo } = context.repo
98+ const { data: { id } } = await github.rest.repos.getLatestRelease({ owner, repo })
99+ await github.rest.repos.deleteRelease({ owner, repo, release_id: id })
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments