Skip to content

stac-model-v0.1.4

stac-model-v0.1.4 #6

Workflow file for this run

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/github-slug-action@v3.x
- uses: actions/checkout@v2
- name: deploy JSON Schema for version ${{ env.GITHUB_REF_SLUG }}
uses: peaceiris/actions-gh-pages@v3
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@v2
- name: Set up Python
uses: actions/setup-python@v2.2.2
with:
python-version: "3.10"
- name: Install poetry
run: make poetry-install
- name: Publish stac-model to PyPI
run: |
poetry build
poetry publish --username __token__ --password ${{ secrets.PYPI_SECRET }}