Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish JSON Schema or stac-model package via Github Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy-schema: | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Inject env variables | |
uses: rlespinasse/[email protected] | |
- uses: actions/checkout@v4 | |
- name: deploy JSON Schema for version ${{ env.GITHUB_REF_SLUG }} | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: json-schema | |
destination_dir: ${{ env.GITHUB_REF_SLUG }} | |
publish-pypi: | |
if: startsWith(github.ref, 'refs/tags/stac-model-v') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: "3.10" | |
- name: Install uv | |
run: make setup | |
- name: Publish stac-model to PyPI | |
run: | | |
uv build | |
uv publish --username __token__ --password ${{ secrets.PYPI_SECRET }} |