Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stac-model release workflow #14

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .github/workflows/greetings.yml

This file was deleted.

21 changes: 18 additions & 3 deletions .github/workflows/publish.yaml
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') && !startsWith(github.ref, 'refs/tags/stac-model-v')
runs-on: ubuntu-latest
rbavery marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Inject env variables
Expand All @@ -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/setup-python@v2.2.2
with:
python-version: 3.10
- name: Install poetry
run: make poetry-install
- name: Build and publish
run: |
poetry publish --build
rbavery marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
make poetry-install
```

> This installs Poetry as a [standalone application][poetry-install].
> This installs Poetry as a [standalone application][poetry-install].
> If you prefer, you can simply install it inside your virtual environment.

2. Initialize project dependencies with poetry and install `pre-commit` hooks:
Expand All @@ -24,7 +24,7 @@ To activate your `virtualenv` run `poetry shell`.

Want to know more about Poetry? Check [its documentation][poetry-docs].

Poetry's [commands][poetry-cli] let you easily make descriptive python environments
Poetry's [commands][poetry-cli] let you easily make descriptive python environments
and run commands in those environments, like:

- `poetry add numpy@latest`
Expand All @@ -51,7 +51,7 @@ make test
git checkout -b your-branch
git add .
git commit -m ":tada: Initial commit"
git remote add origin https://github.com/your-fork/stac-model.git
git remote add origin https://github.com/your-fork/mlm-extension.git
git push -u origin your-branch
```

Expand Down
Loading
Loading