-
Notifications
You must be signed in to change notification settings - Fork 22
46 lines (36 loc) · 1.15 KB
/
publish_to_test_pypi.yaml
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
46
name: Publish Test PyPI Release
on:
push:
tags: ["*"]
jobs:
build-dists:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.12"
- run: python -m pip install build
- name: Set dev version prior to upload
run: python ./scripts/set_dev_version.py
- name: Build Dists
run: python -m build .
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: packages
path: dist/*
publish:
needs: [build-dists]
runs-on: ubuntu-latest
environment: publish-test-pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: packages
path: dist
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3
with:
repository-url: https://test.pypi.org/legacy/