-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (35 loc) · 952 Bytes
/
publish-testpypi.yml
File metadata and controls
41 lines (35 loc) · 952 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
41
name: Publish to TestPyPI
on:
push:
branches: [main]
jobs:
testpypi-publish:
name: upload dev build to TestPyPI
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/eval-hub-sdk
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install build
- name: Build package
env:
SETUPTOOLS_SCM_OVERRIDES_FOR_EVAL_HUB_SDK: 'local_scheme = "no-local-version"'
run: |
python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/