Skip to content

Merge pull request #175 from python-astrodynamics/feature/prepare-2.1.0 #2

Merge pull request #175 from python-astrodynamics/feature/prepare-2.1.0

Merge pull request #175 from python-astrodynamics/feature/prepare-2.1.0 #2

Workflow file for this run

name: Upload Python Package
on:
push:
tags:
- "*"
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: publish
url: https://pypi.org/p/spacetrack
permissions:
contents: read
id-token: write
attestations: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.x"
- name: Build
run: "uv build"
- name: Publish
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
release:
needs: deploy
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Create GitHub Release
run: |
gh release create "$GITHUB_REF_NAME" \
--verify-tag \
--title "$GITHUB_REF_NAME" \
--notes "See the [change log](https://spacetrack.readthedocs.io/en/$GITHUB_REF_NAME/changelog.html) for the changes in this release."
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}