Skip to content

Commit 108ab61

Browse files
authored
chore: setup a release action (#39)
1 parent 4c6f1aa commit 108ab61

File tree

2 files changed

+64
-2
lines changed

2 files changed

+64
-2
lines changed

.github/workflows/release.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+

.release-it.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
},
3131
"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"
3434
}
3535
}

0 commit comments

Comments
 (0)