-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (40 loc) · 1.17 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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.