Skip to content

Commit dadf4b1

Browse files
committed
add release workflow
1 parent f287ebc commit dadf4b1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Bump version and publish
2+
3+
on:
4+
workflow_dispatch
5+
6+
jobs:
7+
tag:
8+
permissions:
9+
contents: write
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Generate Tag
15+
uses: cvxgrp/.github/actions/tag@v2.2.8
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
19+
publish:
20+
needs: tag
21+
runs-on: ubuntu-latest
22+
environment: release
23+
24+
permissions:
25+
contents: read
26+
# This permission is required for trusted publishing.
27+
id-token: write
28+
29+
steps:
30+
- uses: actions/download-artifact@v4
31+
with:
32+
name: dist
33+
path: dist
34+
35+
- name: Publish to PyPI
36+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)