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