Skip to content

ci: Use hatch to manage builds (#64) #2

ci: Use hatch to manage builds (#64)

ci: Use hatch to manage builds (#64) #2

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
Release:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/ipyniivue
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
# For generating GitHub Releases + Release notes
# ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# requires Node to build JS
- uses: actions/setup-node@v4
with:
node-version: "18.x"
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: |
pipx install hatch
hatch build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- run: npx changelogithub@0.12
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}