Skip to content

Commit 29c8e09

Browse files
author
Benjamin Jesuiter
committed
optimize zip structure for deployment
1 parent af92d44 commit 29c8e09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
name: '${{ env.distDir}}'
7272

7373
- name: Zip Artifact
74-
run: zip -r "${{ env.zipName }}" "${{ env.distDir }}"
74+
run: cd ${{ env.distDir }} && zip -r "${{ env.zipName }}" "${{env.macosAppArtifact}}"
7575

7676
- name: Create Release
7777
id: create-release
@@ -94,6 +94,6 @@ jobs:
9494
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9595
with:
9696
upload_url: ${{ steps.create-release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
97-
asset_path: ./${{ env.zipName }}
97+
asset_path: ./${{ env.distDir }}/${{ env.zipName }}
9898
asset_name: ${{ env.zipName }}
9999
asset_content_type: application/zip

0 commit comments

Comments
 (0)