Skip to content

Commit f9efa36

Browse files
ci: use paramter value for version
1 parent 2b84f82 commit f9efa36

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test Release to test.pypi.org
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version to publish'
8+
required: true
9+
10+
11+
jobs:
12+
release-test-wheel:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Setup Fresh Virtual Environment
17+
run: |
18+
pip install --upgrade pip
19+
python3.10 -m venv env
20+
export PATH=$PATH:/home/docker/.local/bin
21+
source env/bin/activate
22+
echo "VIRTUAL ENV:" $VIRTUAL_ENV
23+
- name: Install Packaging Dependencies
24+
run: pip install build twine
25+
- name: Package
26+
env:
27+
VERSION: ${{ github.event.inputs.version }}
28+
run: bash scripts/wheel.sh $(echo $VERSION | sed 's/^refs\/tags\/v//')
29+
- name: Publish
30+
env:
31+
TWINE_USERNAME: __token__
32+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
33+
VERSION: ${{ github.event.inputs.version }}
34+
run: bash scripts/pypi-release.sh lmql-$(echo $VERSION | sed 's/^refs\/tags\/v//') --production

0 commit comments

Comments
 (0)