From dd0bfdb5d8dc44d87bad41f6e83755fc8f0780ff Mon Sep 17 00:00:00 2001 From: Matthieu Dubuget Date: Mon, 24 May 2021 15:36:32 +0200 Subject: [PATCH] Try another way to write upload artifact --- .github/workflows/blank.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 549059a..519c8a6 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -31,20 +31,19 @@ jobs: - run: opam exec -- dune build - - name: Upload a Windows Build Artifact + - name: Upload artifact uses: actions/upload-artifact@v2.2.3 - if: runner.os == 'Windows' with: - name: nbr-win32 - # A file, directory or wildcard pattern that describes what to upload - path: _build/install/default/bin/nbr.exe - retention-days: 1 - - - name: Upload a Linux Build Artifact - uses: actions/upload-artifact@v2.2.3 - if: runner.os == 'Linux' - with: - name: nbr-linux - # A file, directory or wildcard pattern that describes what to upload - path: _build/install/default/bin/nbr + name: | + if [ "$RUNNER_OS" == "Windows" ]; then + echo "nbr-win" + else + echo "nbr-lin" + fi + path: | + if [ "$RUNNER_OS" == "Windows1 ]; then + echo "_build/install/default/bin/nbr.exe" + else + echo "_build/install/default/bin/nbr" + fi retention-days: 1