-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (36 loc) · 1 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 }}