Skip to content

Commit 78b5dfe

Browse files
committed
Added api token in options based on githib discussion
pypa/gh-action-pypi-publish#278 (comment)
1 parent 84d86f0 commit 78b5dfe

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Python package
55

66
on:
77
push:
8-
branches: [ $default-branch ]
8+
branches: [ master ]
99
pull_request:
10-
branches: [ $default-branch ]
10+
branches: [ master ]
1111

1212
jobs:
1313
build:

.github/workflows/python-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ jobs:
4343
with:
4444
packages-dir: ./hatch/hatch-module-yorailevi/dist/ # the action doesn't use cwd but global repo
4545
repository-url: https://test.pypi.org/legacy/
46+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

hatch/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@ Credentials
2222
username = __token__
2323
password = pypi-*********
2424
```
25-
25+
from pypi/test.pypi
2626
```
2727
pip install hatch-module-yorailevi
28+
pip install -i https://test.pypi.org/simple/ hatch-module-yorailevi
2829
```
2930

31+
from github url
32+
```
33+
python -m pip install "git+https://github.com/YoraiLevi/pip_installable_module/#subdirectory=hatch/hatch-module-yorailevi"
34+
```
35+
Locally, editable
3036
```
3137
pip install -e .
32-
```
38+
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-FileCopyrightText: 2024-present Yorai Levi <[email protected]>
22
#
33
# SPDX-License-Identifier: MIT
4-
__version__ = "0.0.2"
4+
__version__ = "0.0.4"

0 commit comments

Comments
 (0)