Commit 596fcc1 1 parent 70d4604 commit 596fcc1 Copy full SHA for 596fcc1
File tree 2 files changed +33
-11
lines changed
2 files changed +33
-11
lines changed Original file line number Diff line number Diff line change 25
25
uses : actions/checkout@v4
26
26
27
27
-
uses :
cvxgrp/.github/actions/uv/[email protected]
28
+
29
+ pre-commit :
30
+ runs-on : ubuntu-latest
31
+ steps :
32
+ - name : Checkout [${{ github.repository }}]
33
+ uses : actions/checkout@v4
34
+
35
+ -
uses :
pre-commit/[email protected]
36
+ with :
37
+ extra_args : ' --verbose --all-files'
Original file line number Diff line number Diff line change 1
- name : Upload Python Package
1
+ name : Bump version and publish
2
2
3
3
on :
4
- release :
5
- types : [published]
4
+ workflow_dispatch :
5
+ # workflow_run:
6
+ # workflows: [ "CI" ]
7
+ # types: [ completed ]
6
8
7
9
jobs :
8
- build :
10
+ tag :
11
+ permissions :
12
+ contents : write
13
+
14
+ # if: >
15
+ # github.event_name == 'workflow_dispatch' ||
16
+ # (github.event.workflow_run.conclusion == 'success' &&
17
+ # github.event.workflow_run.head_branch == 'main')
18
+
9
19
runs-on : ubuntu-latest
20
+
10
21
steps :
11
22
- name : Checkout [${{ github.repository }}]
12
23
uses : actions/checkout@v4
13
24
14
- -
uses :
cvxgrp/.github/actions/uv/[email protected]
25
+ - name : Generate Tag
26
+ uses :
cvxgrp/.github/actions/uv/[email protected]
27
+ with :
28
+ github_token : ${{ secrets.GITHUB_TOKEN }}
15
29
16
- deploy :
30
+ publish :
31
+ needs : tag
17
32
runs-on : ubuntu-latest
18
- needs : build
19
33
environment : release
20
34
21
35
permissions :
36
+ contents : read
22
37
# This permission is required for trusted publishing.
23
38
id-token : write
24
39
25
40
steps :
26
41
- name : Checkout [${{ github.repository }}]
27
42
uses : actions/checkout@v4
28
43
29
- # download dist from build
30
44
- uses : actions/download-artifact@v4
31
45
with :
32
46
name : dist
33
47
path : dist
34
48
35
- - name : Publish package distributions to PyPI
49
+ - name : Publish to PyPI
36
50
uses : pypa/gh-action-pypi-publish@release/v1
37
- with :
38
- repository-url : https://upload.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments