Skip to content

Commit 1da144e

Browse files
author
Ayane Satomi
authored
Assign matrix.platform to a env var
1 parent 2ac699a commit 1da144e

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/build-commit.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- name: Build code-server binary (Linux)
2222
run: bash ./scripts/ci.bash
2323
env:
24+
PLATFORM: ${{ matrix.platform }}
2425
MAJOR_VERSION: '2'
2526
TARGET: ${{ matrix.linux-platforms }}
2627
VERSION: '${MAJOR_VERSION}.${GITHUB_SHA}'
@@ -29,11 +30,17 @@ jobs:
2930
PACKAGE: 'true'
3031

3132
- name: Build code-server binary (macOS)
32-
if: contains(${{ matrix.platform }}, 'macos-latest')
33+
if: contains(${PLATFORM}, 'macos-latest')
3334
run: bash ./scripts/ci.bash
3435
env:
36+
PLATFORM: ${{ matrix.platform }}
3537
MAJOR_VERSION: '2'
3638
VERSION: '${MAJOR_VERSION}.${GITHUB_SHA}'
3739
VSCODE_VERSION: '1.38.1'
3840
MINIFY: 'true'
39-
PACKAGE: 'true'
41+
PACKAGE: 'true'
42+
43+
- uses: actions/upload-artifact@master
44+
with:
45+
name: nightly-builds
46+
path: build/

0 commit comments

Comments
 (0)