Skip to content

Commit fd64a8c

Browse files
committed
chore: update CI workflows to trigger on release events and remove unused job
1 parent 1ce6c33 commit fd64a8c

File tree

2 files changed

+7
-33
lines changed

2 files changed

+7
-33
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
---
12
name: CI
23

34
on:
4-
push:
5-
branches: [main]
65
pull_request:
7-
workflow_dispatch:
6+
branches:
7+
- main
8+
release:
9+
types: [published] # Trigger when a release is published
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.ref_name }}-${{
@@ -17,34 +19,6 @@ env:
1719
IMAGE_NAME: ${{ github.repository }}
1820

1921
jobs:
20-
determine_changes:
21-
name: "Determine changes"
22-
runs-on: ubuntu-latest
23-
outputs:
24-
# Flag that is raised when any code is changed
25-
code: ${{ steps.changed.outputs.code_any_changed }}
26-
steps:
27-
- uses: actions/checkout@v4
28-
with:
29-
fetch-depth: 0
30-
31-
- uses: tj-actions/changed-files@v45
32-
id: changed
33-
with:
34-
files_yaml: |
35-
code:
36-
- "**/*"
37-
- "!docs/**/*"
38-
- "!mkdocs.*.yml"
39-
- "!**/*.md"
40-
- "!bin/**"
41-
- "!assets/**"
42-
- "!dist/**"
43-
# Generated markdown and JSON files are checked during test runs
44-
- "docs/reference/cli.md"
45-
- "docs/reference/settings.md"
46-
- "docs/configuration/environment.md"
47-
- "uv.schema.json"
4822
lint:
4923
timeout-minutes: 10
5024
name: "lint"
@@ -68,8 +42,7 @@ jobs:
6842
run: uvx ruff check .
6943

7044
- name: "Validate project metadata"
71-
run: uvx --from 'validate-pyproject[all,store]' validate-pyproject
72-
pyproject.toml
45+
run: uvx --from 'validate-pyproject[all,store]' validate-pyproject pyproject.toml
7346

7447
build-and-publish:
7548
runs-on: ubuntu-latest

.github/workflows/python-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Upload Python Package
23

34
on:

0 commit comments

Comments
 (0)