-
Notifications
You must be signed in to change notification settings - Fork 38
34 lines (32 loc) · 963 Bytes
/
testpypi_release.yaml
File metadata and controls
34 lines (32 loc) · 963 Bytes
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
name: Test PyPI Release
on:
push:
tags:
- "v*-alpha*"
- "v*-beta*"
- "v*-rc*"
# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/
jobs:
release:
name: Publish pre-release Python distributions to TestPyPI
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/run_dbcan
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
with:
filter: blob:none
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- run: python -m pip install --upgrade pip wheel twine build
- run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/