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 - run: opam exec -- dune build
- name: Upload a Windows Build Artifact - name: Upload artifact
uses: actions/upload-artifact@v2.2.3 uses: actions/upload-artifact@v2.2.3
if: runner.os == 'Windows'
with: with:
name: nbr-win32 name: |
# A file, directory or wildcard pattern that describes what to upload if [ "$RUNNER_OS" == "Windows" ]; then
path: _build/install/default/bin/nbr.exe echo "nbr-win"
retention-days: 1 else
echo "nbr-lin"
- name: Upload a Linux Build Artifact fi
uses: actions/upload-artifact@v2.2.3 path: |
if: runner.os == 'Linux' if [ "$RUNNER_OS" == "Windows1 ]; then
with: echo "_build/install/default/bin/nbr.exe"
name: nbr-linux else
# A file, directory or wildcard pattern that describes what to upload echo "_build/install/default/bin/nbr"
path: _build/install/default/bin/nbr fi
retention-days: 1 retention-days: 1