Skip to content

build(deps): Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.2 in the gh-actions group #16

build(deps): Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.2 in the gh-actions group

build(deps): Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.2 in the gh-actions group #16

Workflow file for this run

name: Build
on:
pull_request:
push:
branches: [main]
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Set up pixi
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
with:
environments: build
- name: Build project
run: pixi run -e build build-wheel
- name: Check build artifact
run: pixi run -e build twine-check
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: artifact
path: dist/*
release:
name: Publish package
if: github.event_name == 'release'
needs: [build]
runs-on: ubuntu-latest
permissions:
id-token: write
environment: pypi
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- name: Publish package on PyPi
uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b