Mirrored from GitHub github.com/roostorg/osprey
0

Configure Feed

Select the types of activity you want to include in your feed.

osprey / .github / workflows / release-osprey-rpc.yml
1.4 kB 50 lines
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 15 with: 16 persist-credentials: false 17 18 - name: Set up Python 19 uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 20 with: 21 python-version-file: ".python-version" 22 23 - name: Install uv 24 uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 25 with: 26 version: "latest" 27 enable-cache: false 28 29 - name: Build osprey-rpc sdist 30 working-directory: osprey_rpc 31 run: uv build --sdist 32 33 - name: Create zip from sdist 34 working-directory: osprey_rpc/dist 35 run: | 36 tar -xzf osprey_rpc-*.tar.gz 37 SDIST_DIR=$(ls -d osprey_rpc-*/) 38 SDIST_DIR=${SDIST_DIR%/} 39 zip -r "${SDIST_DIR}.zip" "${SDIST_DIR}" 40 rm -rf "${SDIST_DIR}" 41 ls -la 42 43 - name: Upload osprey-rpc to release 44 env: 45 GH_TOKEN: ${{ github.token }} 46 TAG: ${{ github.event.release.tag_name }} 47 run: | 48 gh release upload "$TAG" \ 49 osprey_rpc/dist/osprey_rpc-*.tar.gz \ 50 osprey_rpc/dist/osprey_rpc-*.zip