Skip to content

Commit a602ba2

Browse files
authored
fix: Change learn-ocaml-www.zip inner dir (wwwlearn-ocaml-www`) (#474)
Motivation: avoid a conflict between "source www" and "generated www", doing `unzip learn-ocaml-www.zip; learn-ocaml build --contents-dir=…`. Related: e36d874
1 parent 19a8e1a commit a602ba2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/static-builds.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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' }}

0 commit comments

Comments
 (0)