Skip to content

feat(freefloating): add support for freefloating nearby API (#89) #12

feat(freefloating): add support for freefloating nearby API (#89)

feat(freefloating): add support for freefloating nearby API (#89) #12

Workflow file for this run

name: Publish pre-release on TestPyPI
on:
push:
branches: [main]
release:
types: [prereleased]
permissions:
contents: read
jobs:
pre-release-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build release distributions
run: |
python -m pip install --upgrade pip
pip install build
python -m build
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
test-pypi-publish:
runs-on: ubuntu-latest
needs: pre-release-build
if: github.event_name == 'release' && github.event.action == 'prereleased'
permissions:
id-token: write
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/