Skip to content

Commit 96ebb26

Browse files
committed
release workflow
1 parent 0df46cd commit 96ebb26

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release to PyPI
2+
3+
on:
4+
push:
5+
tags: ['v*']
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write # for trusted publishing
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install Nix
16+
uses: cachix/install-nix-action@v27
17+
with:
18+
extra_nix_config: |
19+
experimental-features = nix-command flakes
20+
21+
# likely we don't need to have these bindings in the actual repo
22+
- name: Generate LCM bindings
23+
run: nix develop --command ./generate.sh
24+
25+
- name: Build package
26+
run: nix develop --command python -m build
27+
28+
- name: Publish to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)