Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 3d12ef0

Browse files
authored
Merge pull request #5 from code-yeongyu/feature/fix-release
Fix release action not working
2 parents e8fe925 + a3e9059 commit 3d12ef0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@ jobs:
3030
if: steps.cache-dependencies.cache-hit != 'true'
3131
run: poetry install
3232

33-
- name: Test
33+
- name: Authenticate to PyPI
34+
run: poetry http-basic.pypi ${{ secrets.PYPI_USERNAME }} ${{ secrets.PYPI_PASSWORD }}
35+
36+
- name: Release
3437
run: poetry run invoke release

tasks.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ def release(context: Context) -> None:
4141
''',
4242
pty=True,
4343
)
44-
except UnexpectedExit:
45-
pass
44+
except UnexpectedExit as exception:
45+
with open(pyproject_path, 'w', encoding='utf-8') as pyproject_file:
46+
pyproject_file.write(pyproject_string)
47+
raise exception
4648

4749
# recover to original
4850
with open(pyproject_path, 'w', encoding='utf-8') as pyproject_file:

0 commit comments

Comments
 (0)