diff --git a/.github/workflows/static-builds.yml b/.github/workflows/static-builds.yml index da30f4088..af744be40 100644 --- a/.github/workflows/static-builds.yml +++ b/.github/workflows/static-builds.yml @@ -18,23 +18,23 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - archive: ["learn-ocaml-www.zip"] + arch_dir: ["learn-ocaml-www"] # we could use an env var, albeit it would be less convenient steps: - name: Check out the repo uses: actions/checkout@v2 - name: Build learn-ocaml-compilation run: 'docker build -t learn-ocaml-compilation --target=compilation .' - - name: Build ${{ matrix.archive }} + - name: 'Build ${{ matrix.arch_dir }}.zip' run: | docker run -i --rm -w /home/opam/install-prefix/share/learn-ocaml -u 0 --entrypoint='' learn-ocaml-compilation sh -c \ - 'apk add --no-cache zip >&2 && zip -r ${{ matrix.archive }} www >&2 && tar c ${{ matrix.archive }}' | \ + '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"' | \ tar vx - - name: Upload ${{ matrix.archive }} + - name: 'Upload ${{ matrix.arch_dir }}.zip' uses: actions/upload-artifact@v2 with: - name: ${{ matrix.archive }} - path: ${{ matrix.archive }} + name: '${{ matrix.arch_dir }}.zip' + path: '${{ matrix.arch_dir }}.zip' static-bin-linux: name: Builds static Linux binaries if: ${{ github.event_name != 'schedule' || github.repository == 'ocaml-sf/learn-ocaml' }}