Skip to content

lmcache_inprocess v0.1.0rc2 #3

lmcache_inprocess v0.1.0rc2

lmcache_inprocess v0.1.0rc2 #3

Workflow file for this run

name: Release
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"
- run: |
python -m pip install build twine
python -m build
python -m twine check dist/*
python scripts/check_wheel_contents.py dist/lmcache_inprocess-*.whl
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: release-dist
path: dist/*
if-no-files-found: error
publish-github:
if: github.event_name == 'release'
needs: build
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: release-dist
path: dist
- name: Upload release assets
env:
GH_TOKEN: ${{ github.token }}
run: gh release upload "${{ github.event.release.tag_name }}" dist/* --repo "${{ github.repository }}"
publish-pypi:
if: github.event_name == 'release'
needs: build
runs-on: ubuntu-24.04
environment:
name: pypi
url: https://pypi.org/p/lmcache-inprocess
permissions:
id-token: write
steps:
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: release-dist
path: dist
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0