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.
move release action for stac-model to publish.yaml to use published r…
…elease type
- Loading branch information
Showing
2 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
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,9 @@ | ||
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') && !startsWith(github.ref, 'refs/tags/stac-model-v') | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -16,3 +16,17 @@ jobs: | |
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/[email protected] | ||
with: | ||
python-version: 3.10 | ||
- name: Install poetry | ||
run: make poetry-install | ||
- name: Build and publish | ||
run: | | ||
poetry publish --build |
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 |
---|---|---|
|
@@ -34,18 +34,3 @@ jobs: | |
- name: Run tests | ||
run: | | ||
make test | ||
publish: | ||
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: | | ||
poetry publish --build |