Skip to content

Commit 596fcc1

Browse files
committed
update pre-commit, remove pre-commit.ci
1 parent 70d4604 commit 596fcc1

File tree

2 files changed

+33
-11
lines changed

2 files changed

+33
-11
lines changed

.github/workflows/pre-commit.yml

+10
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@ jobs:
2525
uses: actions/checkout@v4
2626

2727
- 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'

.github/workflows/release.yml

+23-11
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,50 @@
1-
name: Upload Python Package
1+
name: Bump version and publish
22

33
on:
4-
release:
5-
types: [published]
4+
workflow_dispatch:
5+
#workflow_run:
6+
# workflows: [ "CI" ]
7+
# types: [ completed ]
68

79
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+
919
runs-on: ubuntu-latest
20+
1021
steps:
1122
- name: Checkout [${{ github.repository }}]
1223
uses: actions/checkout@v4
1324

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 }}
1529

16-
deploy:
30+
publish:
31+
needs: tag
1732
runs-on: ubuntu-latest
18-
needs: build
1933
environment: release
2034

2135
permissions:
36+
contents: read
2237
# This permission is required for trusted publishing.
2338
id-token: write
2439

2540
steps:
2641
- name: Checkout [${{ github.repository }}]
2742
uses: actions/checkout@v4
2843

29-
# download dist from build
3044
- uses: actions/download-artifact@v4
3145
with:
3246
name: dist
3347
path: dist
3448

35-
- name: Publish package distributions to PyPI
49+
- name: Publish to PyPI
3650
uses: pypa/gh-action-pypi-publish@release/v1
37-
with:
38-
repository-url: https://upload.pypi.org/legacy/

0 commit comments

Comments
 (0)