Skip to content

Commit

Permalink
ci(assets): add schemas to release asset
Browse files Browse the repository at this point in the history
This commit adds Queenbee schema files to assets for each release.
  • Loading branch information
mostaphaRoudsari committed Dec 10, 2020
1 parent 18515b4 commit ce8050f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ jobs:
- name: install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -U .
pip install -r dev-requirements.txt
- name: install semantic-release
run:
npm install @semantic-release/exec
- name: generate queenbee schemas
run:
python ./gen_schemas.py
- name: run semantic release
run:
npx semantic-release
Expand Down
20 changes: 19 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,25 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
[
"@semantic-release/github",
{
"assets": [
{
"path": "docs/_static/schemas/queenbee.json",
"label": "Queenbee schema"
},
{
"path": "docs/_static/schemas/queenbee_inheritance.json",
"label": "Queenbee schema with inheritance"
},
{
"path": "docs/_static/schemas/queenbee_mapper.json",
"label": "Queenbee schema mapper"
}
]
}
],
[
"@semantic-release/exec",
{
Expand Down

0 comments on commit ce8050f

Please sign in to comment.