We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cca203 commit 3c6e98fCopy full SHA for 3c6e98f
.github/workflows/publish-to-test.yaml
@@ -2,7 +2,13 @@
2
3
name: Publish to TestPyPI
4
5
-on: workflow_dispatch
+on:
6
+ workflow_dispatch:
7
+ inputs:
8
+ dev_version:
9
+ description: 'Dev version N'
10
+ required: true
11
+
12
13
jobs:
14
build-n-publish:
@@ -17,6 +23,10 @@ jobs:
17
23
uses: actions/setup-python@v4
18
24
with:
19
25
python-version: "3.8"
26
+ - name: Append Dev Version to __version__
27
+ run: |
28
+ DEV_VERSION=${{ github.event.inputs.dev_version }}
29
+ sed -i "s/__version__ = \\".*\\"/__version__ = \\"$(sed -n 's/__version__ = \\"\(.*\)\\"/\1/p' llama_cpp/__init__.py).dev${DEV_VERSION}\\"/" llama_cpp/__init__.py
20
30
- name: Install dependencies
21
31
run: |
22
32
python3 -m pip install --upgrade pip build
0 commit comments