Skip to content

Commit 1a6e546

Browse files
authored
Fix unix release (#63)
1 parent 68755bc commit 1a6e546

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,10 @@ on:
1313
- "v*"
1414

1515
jobs:
16-
build-linux:
17-
runs-on: ubuntu-latest
18-
container: google/dart:stable
19-
steps:
20-
- name: Checkout code
21-
uses: actions/checkout@v4
22-
23-
- name: Create archive
24-
run: |
25-
bash ./scripts/build_release.sh
26-
shell: bash
27-
28-
- name: Upload artifact
29-
uses: actions/upload-artifact@v4
30-
with:
31-
name: release-archive-ubuntu-latest
32-
path: ${{ env.ARCHIVE_NAME }}
33-
34-
build-non-linux:
16+
build:
3517
strategy:
3618
matrix:
37-
os: [macos-latest, windows-latest]
19+
os: [macos-latest, windows-latest, ubuntu-latest]
3820
runs-on: ${{ matrix.os }}
3921
steps:
4022
- name: Checkout code
@@ -43,8 +25,8 @@ jobs:
4325
- name: Setup Dart
4426
uses: dart-lang/setup-dart@v1
4527

46-
- name: Create archive (macOS)
47-
if: matrix.os == 'macos-latest'
28+
- name: Create archive (macOS, Linux)
29+
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
4830
run: |
4931
bash ./scripts/build_release.sh
5032
shell: bash
@@ -62,7 +44,7 @@ jobs:
6244
path: ${{ env.ARCHIVE_NAME }}
6345

6446
release:
65-
needs: [build-linux, build-non-linux]
47+
needs: build
6648
runs-on: ubuntu-latest
6749
permissions:
6850
contents: write

0 commit comments

Comments
 (0)