@@ -79,17 +79,22 @@ jobs:
7979 file Release-fat/BEMCheckBox.framework/BEMCheckBox
8080 echo "Listing: Release-fat" && ls -la Release-fat
8181 echo "Listing: Release-fat/BEMCheckBox.framework" && ls -la Release-fat/BEMCheckBox.framework
82- cp -R Release-fat/BEMCheckBox.framework Release-fat/BEMCheckBox-v${{ steps.gitversion.outputs.majorMinorPatch }}.framework
83- echo "Listing: Release-fat" && ls -la Release-fat
8482
83+ # Upload the directory, not a zip file, as uploading an artificate will automatically zip it
84+ # and we don't want a zip in a zip.
8585 - name : Upload Build Artificates to GitHub Workflow
8686 uses : actions/upload-artifact@v3
8787 with :
8888 name : BEMCheckBox-v${{ steps.gitversion.outputs.majorMinorPatch }}.framework
89- path : Release-fat/BEMCheckBox-v${{ steps.gitversion.outputs.majorMinorPatch }} .framework
89+ path : Release-fat/BEMCheckBox.framework
9090
9191 # Only update to the release on a tag push. Assume the release exists by the
92- # time we create the tag.
92+ # time we create the tag. Also we need to create the zip as uploading to the release
93+ # does not automatically zip the file.
9394 - name : Upload fat Binary to GitHub Release
94- # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
95- run : dotnet gitreleasemanager addasset --token ${{ secrets.GITHUB_TOKEN }} --owner ${{ github.repository_owner }} --repository ${{ github.event.repository.name }} --tagname v${{ steps.gitversion.outputs.majorMinorPatch }} --assets Release-fat/BEMCheckBox-v${{ steps.gitversion.outputs.majorMinorPatch }}.framework
95+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
96+ run : |
97+ cd Release-fat/BEMCheckBox.framework
98+ zip -r BEMCheckBox-v${{ steps.gitversion.outputs.majorMinorPatch }}.framework.zip .
99+ echo "Listing: Release-fat/BEMCheckbox.framework" && ls -la
100+ dotnet gitreleasemanager addasset --token ${{ secrets.GITHUB_TOKEN }} --owner ${{ github.repository_owner }} --repository ${{ github.event.repository.name }} --tagName v${{ steps.gitversion.outputs.majorMinorPatch }} --assets BEMCheckBox-v${{ steps.gitversion.outputs.majorMinorPatch }}.framework.zip
0 commit comments