-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (35 loc) · 897 Bytes
/
ci.yml
File metadata and controls
40 lines (35 loc) · 897 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
35
36
37
38
39
40
name: Test Deploy
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test-deploy:
environment:
name: test_release
url: https://test.pypi.org/p/openserver
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: "Check out code"
uses: actions/checkout@v3
- name: "Set up uv"
uses: astral-sh/setup-uv@v3
with:
python-version: "3.11"
- name: "Build distribution"
run: |
uv build
uv tool run twine check dist/*
- name: "Publish package distributions to PyPI Test"
if: github.event_name != 'pull_request'
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true