Skip to content

Commit 4e32aab

Browse files
committed
artifacts
1 parent 4821893 commit 4e32aab

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
os:
1717
- macos-latest
18-
- ubuntu-latest
18+
- ubuntu-18.04
1919
- windows-latest
2020

2121
runs-on: ${{ matrix.os }}
@@ -27,6 +27,11 @@ jobs:
2727
- name: Checkout submodules
2828
run: git submodule update --init --recursive
2929

30+
- name: Use Node.js 14
31+
uses: actions/setup-node@v2
32+
with:
33+
node-version: 14
34+
3035
- name: Use OCaml 4.06.1
3136
uses: ocaml/setup-ocaml@v2
3237
with:
@@ -41,9 +46,19 @@ jobs:
4146
- name: Test
4247
run: opam exec -- dune runtest
4348

44-
- name: (release only) Upload artifact ${{ matrix.os }}
49+
- name: (release only) Get artifact filenames
50+
id: get_filenames
51+
# if: github.event_name != 'pull_request'
52+
run: node .github/workflows/get_filenames.js
53+
54+
- name: (release only) Get exe
55+
# if: github.event_name != 'pull_request'
56+
shell: bash
57+
run: mv _build/default/bin/Extract.exe ${{ steps.get_filenames.outputs.exe_name }}
58+
59+
- name: (release only) Upload artifact ${{ steps.get_filenames.outputs.artifact_name }}
4560
# if: github.event_name != 'pull_request'
4661
uses: actions/upload-artifact@v2
4762
with:
48-
name: rescript-react-intl-extractor-${{ matrix.os }}
49-
path: _build/default/bin/Extract.exe
63+
name: ${{ steps.get_filenames.outputs.artifact_name }}
64+
path: ${{ steps.get_filenames.outputs.exe_name }}

0 commit comments

Comments
 (0)