From bf465a0b2a4a39dc170532e181739f57186279e2 Mon Sep 17 00:00:00 2001 From: Brett Sutton Date: Thu, 12 May 2022 11:14:20 +1000 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8551c2c..8a1452b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,20 +50,31 @@ jobs: # 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/${{ matrix.os }}/opub + run: dart compile exe bin/opub.dart -o bin/${{ runner.os }}/opub - name: Run compile onepub - run: dart compile exe bin/onepub.dart -o bin/${{ matrix.os }}/onepub + run: dart compile exe bin/onepub.dart -o bin/${{ runner.os }}/onepub - name: Release opub and onepub uses: softprops/action-gh-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - name: ${{ matrix.os }}/${{github.ref_name}} + name: ${{ runner.os }}/${{github.ref_name}} + tag_name: ${{ runner.os }}/${{github.ref_name}} files: | - bin/${{ matrix.os }}/opub - bin/${{ matrix.os }}/onepub + bin/${{ runner.os }}/opub + bin/${{ runner.os }}/onepub + - name: Release opub and onepub as latest + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + name: ${{ runner.os }}/latest + tag_name: ${{ runner.os }}/latest + files: | + bin/${{ runner.os }}/opub + bin/${{ runner.os }}/onepub