forked from crim-ca/dlm-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from crim-ca/stac-model-release
stac-model release workflow, new stac-model-release, align release on pypi and in .toml
- Loading branch information
Showing
7 changed files
with
199 additions
and
193 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
name: Publish JSON Schema | ||
name: Publish JSON Schema or stac-model package via Github Release | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
deploy: | ||
deploy-schema: | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Inject env variables | ||
|
@@ -14,4 +15,18 @@ jobs: | |
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: json-schema | ||
destination_dir: ${{ env.GITHUB_REF_SLUG }} | ||
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/[email protected] | ||
with: | ||
python-version: 3.10 | ||
- name: Install poetry | ||
run: make poetry-install | ||
- name: Build and publish | ||
run: | | ||
make publish |
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
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
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
Oops, something went wrong.