Skip to content

Commit

Permalink
added get version step
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed May 2, 2023
1 parent 054b619 commit da0d06a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Compile database
run: |
pip install h_transport_materials==${{ steps.get_version.outputs.VERSION }}
pip install h_transport_materials == ${{ steps.get_version.outputs.VERSION }}
python -c "import h_transport_materials as htm;htm.database.export_to_json('database.json')"
- name: Upload Release Asset
Expand Down

0 comments on commit da0d06a

Please sign in to comment.