Skip to content

Commit

Permalink
CI support for test releases (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeurerkellner authored Oct 14, 2023
1 parent e3db6fa commit a231d6c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/lmql-release-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Release to test.pypi.org

on:
workflow_dispatch:
inputs:
version:
description: 'Version to publish'
required: true


jobs:
release-test-wheel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Fresh Virtual Environment
run: |
pip install --upgrade pip
python3.10 -m venv env
export PATH=$PATH:/home/docker/.local/bin
source env/bin/activate
echo "VIRTUAL ENV:" $VIRTUAL_ENV
- name: Install Packaging Dependencies
run: pip install build twine
- name: Package
env:
VERSION: ${{ github.event.inputs.version }}
run: bash scripts/wheel.sh $(echo $VERSION | sed 's/^refs\/tags\/v//')
- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
VERSION: ${{ github.ref }}
run: bash scripts/pypi-release.sh lmql-$(echo $VERSION | sed 's/^refs\/tags\/v//') --production
5 changes: 4 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
include src/lmql/ui/*
recursive-include src/lmql/ui/playground/ *
recursive-exclude src/lmql/ui/playground/build/ *
recursive-include src/lmql/lib/chat/assets/ *
recursive-include src/lmql/ui/live/ *
recursive-exclude src/lmql/ui/live/node_modules/ *
recursive-exclude src/lmql/ui/live/ *.tokens
recursive-exclude src/lmql/ui/playground/node_modules/ *
recursive-exclude src/lmql/ui/vscode/ *
recursive-exclude src/lmql/ui/vscode/ *

0 comments on commit a231d6c

Please sign in to comment.