Skip to content

fix: do not transpose the lazy array for the rgb variant (#289) #68

fix: do not transpose the lazy array for the rgb variant (#289)

fix: do not transpose the lazy array for the rgb variant (#289) #68

Workflow file for this run

name: Build and Upload client to PyPI
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
tag:
type: string
description: "Tag to release"
required: true
jobs:
build-and-publish-pypi:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
id-token: write
steps:
- name: set target
id: set_target
env:
INPUT_TAG: ${{ github.event.inputs.tag }}
REF_NAME: ${{ github.ref_name }}
run: |
if [[ "$INPUT_TAG" != "" ]]
then
echo "GITHUB_REF=$INPUT_TAG" >> "$GITHUB_OUTPUT"
else
echo "GITHUB_REF=$REF_NAME" >> "$GITHUB_OUTPUT"
fi
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
ref: ${{steps.set_target.outputs.GITHUB_REF}}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
name: Install Python
with:
python-version: "3.12"
- name: Install pip and hatch
run: |
python -m pip install --upgrade pip &&
pip install hatch
- name: Build tarball and wheels
run: |
# clean working directory
git clean -xdf
git restore -SW .
# build and publish
hatch build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
with:
packages-dir: ./dist
print-hash: true