Skip to content

Publish

Publish #1

Workflow file for this run

name: Publish
on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag to publish (e.g. v0.0.15)'
required: true
type: string
workflow_call:
inputs:
tag:
required: true
type: string
jobs:
publish:
name: Build & publish to PyPI
runs-on: ubuntu-24.04
timeout-minutes: 10
environment:
name: pypi
url: https://pypi.org/project/xarray_plotly
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.tag }}
fetch-depth: 0
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Build
run: uv build
- uses: pypa/gh-action-pypi-publish@release/v1