We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a01ea5 commit 7b1ffddCopy full SHA for 7b1ffdd
.github/workflows/publish.yml
@@ -4,6 +4,7 @@ on:
4
push:
5
tags:
6
- "v*"
7
+ workflow_dispatch: # Allows manual execution from GitHub Actions UI
8
9
jobs:
10
build-and-publish:
@@ -16,15 +17,20 @@ jobs:
16
17
- name: Set up Python
18
uses: actions/setup-python@v4
19
with:
- python-version: "3.x"
20
+ python-version: "3.10"
21
22
- name: Install build tools
23
run: |
24
python -m pip install --upgrade pip
25
python -m pip install build twine
26
27
- name: Build package
- run: python -m build
28
+ run: |
29
+ rm -rf dist # Ensure a clean build
30
+ python -m build
31
+
32
+ - name: Mask API Token
33
+ run: echo "::add-mask::$TEST_PYPI_API_TOKEN"
34
35
- name: Publish to TestPyPI
36
env:
0 commit comments