File tree Expand file tree Collapse file tree 2 files changed +64
-2
lines changed Expand file tree Collapse file tree 2 files changed +64
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Trigger Release
2
+ env :
3
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
4
+ UV_PUBLISH_TOKEN : ${{ secrets.UV_PUBLISH_TOKEN }}
5
+
6
+ on :
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ release :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ with :
16
+ fetch-depth : 0
17
+
18
+ - name : git config
19
+ run : |
20
+ git config user.name "${GITHUB_ACTOR}"
21
+ git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
22
+
23
+ - name : Setup pnpm
24
+ uses : pnpm/action-setup@v4
25
+ with :
26
+ version : 9
27
+ run_install : |
28
+ - recursive: true
29
+ args: [--frozen-lockfile, --strict-peer-dependencies]
30
+
31
+ - name : Setup Python
32
+ uses : actions/setup-python@v5
33
+ with :
34
+ python-version : 3.12
35
+
36
+ - name : Install uv
37
+ uses : astral-sh/setup-uv@v3
38
+
39
+ - name : Install dependencies
40
+ run : |
41
+ uv sync --all-extras
42
+
43
+ - name : Type Check (Python)
44
+ run : |
45
+ pnpm pyright
46
+
47
+ - name : Lint (Python)
48
+ run : |
49
+ uv run ruff check
50
+
51
+ - name : Test (Python)
52
+ run : |
53
+ uv run pytest
54
+
55
+ - name : Run the sample dagster project
56
+ run : |
57
+ uv run dagster job execute -f sample/dagster_project/definitions.py -j all_assets_job
58
+
59
+ - name : Run the release
60
+ run : |
61
+ pnpm release
62
+
Original file line number Diff line number Diff line change 29
29
}
30
30
},
31
31
"hooks" : {
32
- "before:init" : [" make test " , " rm -rf dist" ],
33
- "after:bump " : " uv build && uv publish"
32
+ "before:init" : [" rm -rf dist" ],
33
+ "after:release " : " uv build && uv publish"
34
34
}
35
35
}
You can’t perform that action at this time.
0 commit comments