Skip to content

Commit

Permalink
ci: simplify tagging and publishing process
Browse files Browse the repository at this point in the history
  • Loading branch information
andnp committed Feb 18, 2025
1 parent 5c37ce7 commit a7f6add
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 38 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/publish.yml

This file was deleted.

28 changes: 23 additions & 5 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: tag

on:
workflow_run:
workflows: ['test']
branches: [main]
types:
- completed
push:
branches: [ main ]

permissions:
contents: read
Expand Down Expand Up @@ -34,3 +31,24 @@ jobs:
with:
github_token: ${{ steps.generate-token.outputs.token }}
actor: x-access-token

# setup the repository
- uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install uv
uses: astral-sh/setup-uv@v4

- run: |
uv venv
uv sync
source .venv/bin/activate
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH

- name: Build
run: uv build

- name: Publish
run: uv publish

0 comments on commit a7f6add

Please sign in to comment.