@@ -85,13 +85,22 @@ jobs:
8585 opam install --deps-only bibfmt
8686 opam exec -- dune build -p bibfmt
8787 opam exec -- dune install bibfmt
88- ls _build/default/bibfmt/bin/
8988
9089 - name : Build doi2bib project
9190 run : |
9291 opam install --deps-only doi2bib
9392 opam exec -- dune build -p doi2bib
94- ls _build/default/doi2bib/bin/
93+
94+ - name : Create bibfmt release archive
95+ if : ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(runner.os, 'Win') }}
96+ run : tar czf bibfmt-${{ env.GITHUB_TAG }}-${{ matrix.suffix }}.tar.gz -C _build/default/bibfmt/bin/ bibfmt.exe
97+
98+ - name : Create bibfmt release archive (Windows)
99+ if : ${{ startsWith(github.ref, 'refs/tags/') && startsWith(runner.os, 'Win') }}
100+ run : |
101+ mkdir bibfmt-out
102+ cp _build/default/bibfmt/bin/bibfmt.exe bibfmt-out/
103+ opam exec -- tar czf bibfmt-${{ env.GITHUB_TAG }}-${{ matrix.suffix }}.tar.gz bibfmt-out/
95104
96105 # - name: Check code formatting
97106 # if: ${{ success() && startsWith(runner.os, 'Linux') }}
@@ -108,11 +117,7 @@ jobs:
108117
109118 - name : Create doi2bib release archive
110119 if : ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(runner.os, 'Win') }}
111- run : opam exec -- tar czf doi2bib-${{ env.GITHUB_TAG }}-${{ matrix.suffix }}.tar.gz -C _build/default/doi2bib/bin/ doi2bib.exe
112-
113- - name : Create bibfmt release archive
114- if : ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(runner.os, 'Win') }}
115- run : opam exec -- tar czf bibfmt-${{ env.GITHUB_TAG }}-${{ matrix.suffix }}.tar.gz -C _build/default/bibfmt/bin/ bibfmt.exe
120+ run : tar czf doi2bib-${{ env.GITHUB_TAG }}-${{ matrix.suffix }}.tar.gz -C _build/default/doi2bib/bin/ doi2bib.exe
116121
117122 - name : Create doi2bib release archive (Windows)
118123 if : ${{ startsWith(github.ref, 'refs/tags/') && startsWith(runner.os, 'Win') }}
@@ -121,13 +126,6 @@ jobs:
121126 opam exec -- bash .github/scripts/win.sh
122127 opam exec -- tar czf doi2bib-${{ env.GITHUB_TAG }}-${{ matrix.suffix }}.tar.gz out/
123128
124- - name : Create bibfmt release archive (Windows)
125- if : ${{ startsWith(github.ref, 'refs/tags/') && startsWith(runner.os, 'Win') }}
126- run : |
127- mkdir bibfmt-out
128- cp _build/default/bibfmt/bin/bibfmt.exe bibfmt-out/
129- opam exec -- tar czf bibfmt-${{ env.GITHUB_TAG }}-${{ matrix.suffix }}.tar.gz bibfmt-out/
130-
131129 - name : Upload doi2bib build artifact
132130 if : ${{ startsWith(github.ref, 'refs/tags/') }}
133131 uses : actions/upload-artifact@v4
0 commit comments