Skip to content

Commit

Permalink
checkout with submodules in pypi workflow (#103)
Browse files Browse the repository at this point in the history
* checkout with submodules in pypi workflow

* add missing space

* set version to 0.2.0

* remove testpypi publishing for now
  • Loading branch information
kha-white authored Jul 7, 2024
1 parent 896ab41 commit 0c9a02f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 26 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -96,27 +98,3 @@ jobs:
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'
publish-to-testpypi:
name: Publish to TestPyPI
needs:
- build
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/mokuro

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion mokuro/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.0-beta.8"
__version__ = "0.2.0"
2 changes: 1 addition & 1 deletion mokuro/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def run(
if legacy_html:
logger.warning(
"Legacy HTML output is deprecated and will not be further developed. "
"It's recommended to use .mokuro format and web reader instead."
"It's recommended to use .mokuro format and web reader instead. "
"Legacy HTML will be disabled by default in the future. To explicitly enable it, run with option --legacy-html."
)
# legacy HTML works only with unzipped output
Expand Down

0 comments on commit 0c9a02f

Please sign in to comment.