Skip to content

Commit c5cb1a7

Browse files
authored
Merge pull request #11 from render-engine/10-add-publishyml
2 parents 7346065 + 94d35e0 commit c5cb1a7

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build distribution
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
test:
9+
uses: ./.github/workflows/test.yml
10+
deploy:
11+
needs: [test, lint]
12+
name: Deploy to PyPI
13+
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v5
20+
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
21+
- run: uv build
22+
- uses: pypa/gh-action-pypi-publish@release/v1
23+
with:
24+
packages-dir: ./dist

0 commit comments

Comments
 (0)