Skip to content

Commit

Permalink
fixing release GA so it only creates files in release
Browse files Browse the repository at this point in the history
  • Loading branch information
djarecka committed Jun 18, 2024
1 parent ccba7f9 commit 1bdb235
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/validate_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ jobs:
pip install git+https://github.com/ReproNim/reproschema-py.git
- name: Generate pydantic using linml and fixing it with reproschema specific script
run: |
gen-pydantic --pydantic-version 2 linkml-schema/reproschema.yaml > reproschema_model_autogen.py
python scripts/fix_pydantic.py reproschema_model_autogen.py reproschema_model.py
gen-pydantic --pydantic-version 2 linkml-schema/reproschema.yaml > reproschema_model.py
python scripts/fix_pydantic.py reproschema_model.py
pre-commit run --files reproschema_model.py || true
- name: Generate jsonld format using linkml
run: |
Expand All @@ -68,10 +68,10 @@ jobs:
echo "Making a release ${{ inputs.version }}"
mkdir releases/${{ inputs.version }}
cp contexts/reproschema releases/${{ inputs.version }}/reproschema
cp reproschema_model.py releases/${{ inputs.version }}/reproschema_model.py
cp reproschema.jsonld releases/${{ inputs.version }}/reproschema.jsonld
cp reproschema.nt releases/${{ inputs.version }}/reproschema.nt
cp reproschema.ttl releases/${{ inputs.version }}/reproschema.ttl
mv reproschema_model.py releases/${{ inputs.version }}/reproschema_model.py
mv reproschema.jsonld releases/${{ inputs.version }}/reproschema.jsonld
mv reproschema.nt releases/${{ inputs.version }}/reproschema.nt
mv reproschema.ttl releases/${{ inputs.version }}/reproschema.ttl
# python scripts/makeRelease.py ${{ inputs.version }}

- name: Open pull requests to add files
Expand Down

0 comments on commit 1bdb235

Please sign in to comment.