-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1.1 KB
/
test-pypi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Publish Python to TestPypi
on: workflow_dispatch
jobs:
publish-to-testpypi:
name: Publish Python distribution to TestPyPI
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/larch-pickle
# url: https://pypi.org/p/larch-pickle
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Get release
id: get_release
uses: thebritican/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: create dist
run: |
mkdir dist
- uses: dsaltares/fetch-gh-release-asset@master
with:
version: tags/${{ steps.get_release.outputs.tag_name }}
file: '.*[.](whl|tar.gz|zip)$'
regex: true
target: "dist/"
- name: Debug
run: |
pwd
ls dist
echo "------------------"
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
skip-existing: true