From d9eb9b532d4d8727a31335d07eca4bc9a7f298ad Mon Sep 17 00:00:00 2001 From: Brett Sutton Date: Thu, 12 May 2022 09:24:28 +1000 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3b1f95..36b12dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,15 +37,18 @@ jobs: # Consider passing '--fatal-infos' for slightly stricter analysis. - name: Analyze project source run: dart analyze + + - name: Create release dir + run: mkdir bin/${{ matrix.os }} # Your project will need to have tests in test/ and a dependency on # package:test for this step to succeed. Note that Flutter projects will # want to change this to 'flutter test'. - name: Run compile opub - run: dart compile exe bin/opub.dart -o bin/opub + run: dart compile exe bin/opub.dart -o bin/${{ matrix.os }}/opub - name: Run compile onepub - run: dart compile exe bin/onepub.dart -o onepub + run: dart compile exe bin/onepub.dart -o bin/${{ matrix.os }}/onepub - name: Release opub and onepub uses: softprops/action-gh-release@v1 @@ -53,8 +56,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: files: | - bin/opub - bin/onepub + bin/${{ matrix.os }}/opub + bin/${{ matrix.os }}/onepub