File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,23 +18,23 @@ jobs:
1818 runs-on : ubuntu-latest
1919 strategy :
2020 matrix :
21- archive : ["learn-ocaml-www.zip "]
21+ arch_dir : ["learn-ocaml-www"]
2222 # we could use an env var, albeit it would be less convenient
2323 steps :
2424 - name : Check out the repo
2525 uses : actions/checkout@v2
2626 - name : Build learn-ocaml-compilation
2727 run : ' docker build -t learn-ocaml-compilation --target=compilation .'
28- - name : Build ${{ matrix.archive }}
28+ - name : ' Build ${{ matrix.arch_dir }}.zip '
2929 run : |
3030 docker run -i --rm -w /home/opam/install-prefix/share/learn-ocaml -u 0 --entrypoint='' learn-ocaml-compilation sh -c \
31- 'apk add --no-cache zip >&2 && zip -r ${{ matrix.archive }} www >&2 && tar c ${{ matrix.archive }}' | \
31+ 'mv www "${{ matrix.arch_dir }}" >&2 && apk add --no-cache zip >&2 && zip -r " ${{ matrix.arch_dir }}.zip" "${{ matrix.arch_dir }}" >&2 && tar c " ${{ matrix.arch_dir }}.zip" ' | \
3232 tar vx
33- - name : Upload ${{ matrix.archive }}
33+ - name : ' Upload ${{ matrix.arch_dir }}.zip '
3434 uses : actions/upload-artifact@v2
3535 with :
36- name : ${{ matrix.archive }}
37- path : ${{ matrix.archive }}
36+ name : ' ${{ matrix.arch_dir }}.zip '
37+ path : ' ${{ matrix.arch_dir }}.zip '
3838 static-bin-linux :
3939 name : Builds static Linux binaries
4040 if : ${{ github.event_name != 'schedule' || github.repository == 'ocaml-sf/learn-ocaml' }}
You can’t perform that action at this time.
0 commit comments