-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (28 loc) · 873 Bytes
/
deploy-test.yml
File metadata and controls
32 lines (28 loc) · 873 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
name: Deploy to Test PyPi
on:
pull_request:
types:
- labeled
workflow_dispatch:
permissions:
id-token: write
jobs:
deploy-test:
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.label.name == 'test-deploy') }}
runs-on: ubuntu-latest
environment: test
env:
pypi: ${{ vars.PYPI_URL }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
enable-cache: true
python-version: "3.10"
- name: Build
run: make build
- name: Publish
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
with:
repository-url: ${{ env.pypi }}