8000 Rename test publish · JackieJ/llama-cpp-python@fda975e · GitHub
[go: up one dir, main page]

Skip to content

Commit fda975e

Browse files
committed
Rename test publish
1 parent baa3944 commit fda975e

File tree

2 files changed

+28
-47
lines changed

2 files changed

+28
-47
lines changed

.github/workflows/publish-to-test-pypi.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1 8000 +
# Based on: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
2+
3+
name: Publish to TestPyPI
4+
5+
on: workflow_dispatch
6+
7+
jobs:
8+
build-n-publish:
9+
name: Build and publish
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.8"
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip pytest cmake scikit-build setuptools
21+
- name: Build source distribution
22+
run: |
23+
python setup.py sdist
24+
- name: Publish to Test PyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1
26+
with:
27+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
28+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)
0