Try another way to write upload artifact
This commit is contained in:
parent
1ac1681bcd
commit
dd0bfdb5d8
27
.github/workflows/blank.yml
vendored
27
.github/workflows/blank.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user