Mirror of https://github.com/roostorg/osprey
github.com/roostorg/osprey
1name: Release osprey-rpc
2
3on:
4 release:
5 types: [published]
6
7jobs:
8 build-osprey-rpc:
9 runs-on: ubuntu-24.04
10 permissions:
11 contents: write
12 steps:
13 - name: Checkout code
14 uses: actions/checkout@v4
15
16 - name: Set up Python
17 uses: actions/setup-python@v6
18 with:
19 python-version-file: ".python-version"
20
21 - name: Install uv
22 uses: astral-sh/setup-uv@v7
23 with:
24 version: "latest"
25
26 - name: Build osprey-rpc sdist
27 working-directory: osprey_rpc
28 run: uv build --sdist
29
30 - name: Create zip from sdist
31 working-directory: osprey_rpc/dist
32 run: |
33 tar -xzf osprey_rpc-*.tar.gz
34 SDIST_DIR=$(ls -d osprey_rpc-*/)
35 SDIST_DIR=${SDIST_DIR%/}
36 zip -r "${SDIST_DIR}.zip" "${SDIST_DIR}"
37 rm -rf "${SDIST_DIR}"
38 ls -la
39
40 - name: Upload osprey-rpc to release
41 uses: softprops/action-gh-release@v2
42 with:
43 files: |
44 osprey_rpc/dist/osprey_rpc-*.tar.gz
45 osprey_rpc/dist/osprey_rpc-*.zip