Skip to content

add fal.ai sdxl-turbo plugin #3

add fal.ai sdxl-turbo plugin

add fal.ai sdxl-turbo plugin #3

Workflow file for this run

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload Python Package
on:
workflow_call:
inputs:
package_name:
required: true
type: string
docs_entrypoint:
required: true
type: string
secrets:
PYPI_API_TOKEN:
required: true
DOCS_DEPLOY_AWS_ACCESS_KEY:
required: true
DOCS_DEPLOY_AWS_API_SECRET:
required: true
permissions:
contents: read
jobs:
build:
defaults:
run:
working-directory: ${{ inputs.package_name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: ${{ inputs.package_name}}/dist/
publish:
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
docs:
needs:
- publish
- name: Install dependencies
run: python -m pip install --upgrade pdoc
- name: Build Docs
if: steps.changesets.outputs.published == 'true'

Check failure on line 91 in .github/workflows/publish-package.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-package.yml

Invalid workflow file

You have an error in your yaml syntax on line 91
run: python -m pdoc ${{ inputs.docs_entrypoint }} --docformat=google --html --output-dir docs
- name: S3 Upload
run: aws s3 cp docs/ s3://livekit-docs/${{ inputs.package_name }} --recursive
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_AWS_API_SECRET }}
AWS_DEFAULT_REGION: "us-east-1"