Try another way to write upload artifact

This commit is contained in:
Matthieu Dubuget 2021-05-24 15:36:32 +02:00 committed by GitHub
parent 1ac1681bcd
commit dd0bfdb5d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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