Skip to content

Commit 0f63928

Browse files
authored
Change the archive command to generate a top level dir (#14)
* change the archive command to generate a top level dir, followup of be6543a * the LICENSE.txt file should already be in the folder * swap arguments
1 parent 6d4b777 commit 0f63928

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release-go-task.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,11 @@ jobs:
159159
run: |
160160
# GitHub's upload/download-artifact actions don't preserve file permissions,
161161
# so we need to add execution permission back until the action is made to do this.
162-
chmod +x "${{ env.PROJECT_NAME }}_osx_${{ matrix.artifact.name }}/${{ env.PROJECT_NAME }}"
162+
PLATFORM_DIR="${{ env.PROJECT_NAME }}_osx_${{ matrix.artifact.name }}"
163+
chmod +x "${PLATFORM_DIR}/${{ env.PROJECT_NAME }}"
163164
TAG="${GITHUB_REF/refs\/tags\//}"
164165
PACKAGE_FILENAME="${{ env.PROJECT_NAME }}_${TAG}_${{ matrix.artifact.path }}"
165-
tar -czvf "$PACKAGE_FILENAME" \
166-
-C "${{ env.PROJECT_NAME }}_osx_${{ matrix.artifact.name }}/" "${{ env.PROJECT_NAME }}" \
167-
-C ../../ LICENSE.txt
166+
tar -czvf "$PACKAGE_FILENAME" "${PLATFORM_DIR}"
168167
echo "PACKAGE_FILENAME=$PACKAGE_FILENAME" >> $GITHUB_ENV
169168
170169
- name: Upload artifact

0 commit comments

Comments
 (0)