Skip to content

Commit a7f6add

Browse files
committed
ci: simplify tagging and publishing process
1 parent 5c37ce7 commit a7f6add

2 files changed

Lines changed: 23 additions & 38 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/tag.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
name: tag
22

33
on:
4-
workflow_run:
5-
workflows: ['test']
6-
branches: [main]
7-
types:
8-
- completed
4+
push:
5+
branches: [ main ]
96

107
permissions:
118
contents: read
@@ -34,3 +31,24 @@ jobs:
3431
with:
3532
github_token: ${{ steps.generate-token.outputs.token }}
3633
actor: x-access-token
34+
35+
# setup the repository
36+
- uses: actions/setup-python@v5
37+
with:
38+
python-version: 3.12
39+
40+
- name: Install uv
41+
uses: astral-sh/setup-uv@v4
42+
43+
- run: |
44+
uv venv
45+
uv sync
46+
source .venv/bin/activate
47+
48+
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH
49+
50+
- name: Build
51+
run: uv build
52+
53+
- name: Publish
54+
run: uv publish

0 commit comments

Comments
 (0)