Merge pull request #2771 from pipecat-ai/mb/update-publish-workflows

Updates to publish workflows
This commit is contained in:
Mark Backman
2025-10-02 12:35:43 -04:00
committed by GitHub
2 changed files with 17 additions and 17 deletions

View File

@@ -5,25 +5,25 @@ on:
inputs: inputs:
gitref: gitref:
type: string type: string
description: "what git tag to build (e.g. v0.0.74)" description: 'what git tag to build (e.g. v0.0.74)'
required: true required: true
jobs: jobs:
build: build:
name: "Build and upload wheels" name: 'Build and upload wheels'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repo - name: Checkout repo
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: ${{ github.event.inputs.gitref }} ref: ${{ github.event.inputs.gitref }}
- name: Install uv - name: Install uv
uses: astral-sh/setup-uv@v3 uses: astral-sh/setup-uv@v3
with: with:
version: "latest" version: 'latest'
- name: Set up Python - name: Set up Python
run: uv python install 3.10 run: uv python install 3.12
- name: Install development dependencies - name: Install development dependencies
run: uv sync --group dev run: uv sync --group dev
- name: Build project - name: Build project
@@ -35,9 +35,9 @@ jobs:
path: ./dist path: ./dist
publish-to-pypi: publish-to-pypi:
name: "Publish to PyPI" name: 'Publish to PyPI'
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [ build ] needs: [build]
environment: environment:
name: pypi name: pypi
url: https://pypi.org/p/pipecat-ai url: https://pypi.org/p/pipecat-ai
@@ -56,12 +56,12 @@ jobs:
print-hash: true print-hash: true
publish-to-test-pypi: publish-to-test-pypi:
name: "Publish to Test PyPI" name: 'Publish to Test PyPI'
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [ build ] needs: [build]
environment: environment:
name: testpypi name: testpypi
url: https://pypi.org/p/pipecat-ai url: https://test.pypi.org/p/pipecat-ai
permissions: permissions:
id-token: write id-token: write
steps: steps:
@@ -70,7 +70,7 @@ jobs:
with: with:
name: wheels name: wheels
path: ./dist path: ./dist
- name: Publish to PyPI - name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
verbose: true verbose: true

View File

@@ -4,7 +4,7 @@ on: workflow_dispatch
jobs: jobs:
build: build:
name: "Build and upload wheels" name: 'Build and upload wheels'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repo - name: Checkout repo
@@ -15,9 +15,9 @@ jobs:
- name: Install uv - name: Install uv
uses: astral-sh/setup-uv@v3 uses: astral-sh/setup-uv@v3
with: with:
version: "latest" version: 'latest'
- name: Set up Python - name: Set up Python
run: uv python install 3.10 run: uv python install 3.12
- name: Install development dependencies - name: Install development dependencies
run: uv sync --group dev run: uv sync --group dev
- name: Build project - name: Build project
@@ -29,12 +29,12 @@ jobs:
path: ./dist path: ./dist
publish-to-test-pypi: publish-to-test-pypi:
name: "Publish to Test PyPI" name: 'Publish to Test PyPI'
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build] needs: [build]
environment: environment:
name: testpypi name: testpypi
url: https://pypi.org/p/pipecat-ai url: https://test.pypi.org/p/pipecat-ai
permissions: permissions:
id-token: write id-token: write
steps: steps:
@@ -43,7 +43,7 @@ jobs:
with: with:
name: wheels name: wheels
path: ./dist path: ./dist
- name: Publish to PyPI - name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
verbose: true verbose: true