-
-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (24 loc) · 793 Bytes
/
Copy pathrelease.yml
File metadata and controls
27 lines (24 loc) · 793 Bytes
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
name: Release
# Triggered by a version tag push (e.g. 0.5.0) created by `make release-*`.
# Creates a GitHub Release with auto-generated notes. The "release published"
# event then fires publish.yml → build → TestPyPI → PyPI.
#
# Only admins can push version tags (enforced by the tag protection ruleset),
# so this workflow cannot be triggered by non-admin collaborators.
on:
push:
tags:
- "*.*.*"
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${GITHUB_REF_NAME}" --generate-notes --title "${GITHUB_REF_NAME}"