File tree Expand file tree Collapse file tree 2 files changed +48
-4
lines changed Expand file tree Collapse file tree 2 files changed +48
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
permissions :
10
10
contents : read
11
- id-token : write
12
11
13
12
jobs :
14
13
publish-release :
38
37
twine check --strict dist/*
39
38
40
39
- name : 🚀 Publish to PyPI
41
- uses : pypa/gh-action-pypi-publish@release/v1
42
- with :
43
- attestations : true
40
+ env :
41
+ TWINE_USERNAME : __token__
42
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
43
+ run : |
44
+ twine upload dist/*
Original file line number Diff line number Diff line change
1
+ name : Publish rffickle to TestPyPI
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches : [ main ]
7
+ paths :
8
+ - ' setup.py'
9
+ - ' src/**'
10
+
11
+ permissions :
12
+ contents : read
13
+
14
+ jobs :
15
+ publish-test :
16
+ name : Publish Test Package
17
+ runs-on : ubuntu-latest
18
+ timeout-minutes : 10
19
+ steps :
20
+ - name : 📥 Checkout the repository
21
+ uses : actions/checkout@v4
22
+
23
+ - name : 🐍 Set up Python
24
+ uses : actions/setup-python@v5
25
+ with :
26
+ python-version : ' 3.10'
27
+
28
+ - name : 📦 Install build dependencies
29
+ run : |
30
+ python -m pip install --upgrade pip
31
+ pip install build twine
32
+
33
+ - name : 🏗️ Build source and wheel distributions
34
+ run : |
35
+ python -m build
36
+ twine check --strict dist/*
37
+
38
+ - name : 🚀 Publish to TestPyPI
39
+ env :
40
+ TWINE_USERNAME : __token__
41
+ TWINE_PASSWORD : ${{ secrets.TEST_PYPI_API_TOKEN }}
42
+ run : |
43
+ twine upload --repository testpypi dist/*
You can’t perform that action at this time.
0 commit comments