Skip to content

Commit

Permalink
Remove files to allow copy when targets are identical
Browse files Browse the repository at this point in the history
Fixes:

```
cp: LICENSE and /Users/ec2-user/actions-runner/_work/amalthea/amalthea/LICENSE are identical (not copied).
Error: Process completed with exit code 1.
```

But do we even need to copy?
  • Loading branch information
lionel- committed Jun 12, 2024
1 parent 776f792 commit 9e69d58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ jobs:
# Compress the kernel to an archive
ARCHIVE="$GITHUB_WORKSPACE/ark-${{ inputs.version }}-${{ matrix.flavor }}-linux-x64.zip"
cp -f "$GITHUB_WORKSPACE/LICENSE" LICENSE
cp -f "$GITHUB_WORKSPACE/crates/ark/NOTICE" NOTICE
rm -f LICENSE NOTICE
cp "$GITHUB_WORKSPACE/LICENSE" LICENSE
cp "$GITHUB_WORKSPACE/crates/ark/NOTICE" NOTICE
zip -Xry $ARCHIVE ark LICENSE NOTICE
popd
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,9 @@ jobs:
# Compress and bundle licenses
ARCHIVE="$GITHUB_WORKSPACE/ark-${{ needs.get_version.outputs.ARK_VERSION }}${{ env.DEBUG_FLAG }}-darwin-universal.zip"
cp -f "$GITHUB_WORKSPACE/LICENSE" LICENSE
cp -f "$GITHUB_WORKSPACE/crates/ark/NOTICE" NOTICE
rm -f LICENSE NOTICE
cp "$GITHUB_WORKSPACE/LICENSE" LICENSE
cp "$GITHUB_WORKSPACE/crates/ark/NOTICE" NOTICE
zip -Xry $ARCHIVE ark LICENSE NOTICE
- name: Upload macOS release artifact (universal)
Expand Down

0 comments on commit 9e69d58

Please sign in to comment.