Release geometries as root files. #6
Workflow file for this run
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
# This workflow will automatically create a new release and upload the default geometry | |
name: Create new release | |
on: | |
push: | |
tags: | |
- "*_v_*.*.*" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup gegede | |
run: pip install git+https://github.com/brettviren/gegede.git@86ca28190516a23203cd883aafb0548a61664ceb | |
- name: Setup | |
run: pip install . | |
- name: Build default gdml files | |
run: ./build_hall.sh | |
- name: Rename gdml files to include tag | |
run: | | |
for F in *.gdml | |
do | |
mv $F ${F%.gdml}_${GITHUB_REF_NAME}.gdml | |
done | |
- name: Compress geometry files | |
run: tar -czf default_geometries_${GITHUB_REF_NAME}.tar.gz *.gdml | |
- name: Install ROOT | |
run: sudo snap install root-framework | |
- name: Convert gdml files to root | |
run: | | |
for F in *.gdml | |
do | |
root "gdml2root.C(\"$F\", \"${F%.gdml}.root\")" | |
done | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
default_geometries_*.tar.gz | |
*.root | |
body: See `CHANGELOG.md` for a detailed release history. |