Skip to content

Commit

Permalink
Move files to the same level before upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny committed Jan 11, 2025
1 parent b6d14db commit 6d0f416
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ jobs:
ref: ${{ inputs.branch }}
- name: Build SwiftLint for macOS
run: make bazel_release
- name: Upload binary as artifact
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: swiftlint
path: |
${{ env.MACOS_BUILD_DIR }}/swiftlint
bazel-bin/bazel.tar.gz
bazel-bin/bazel.tar.gz.sha256
swiftlint
bazel.tar.gz
bazel.tar.gz.sha256
retention-days: 2
if-no-files-found: error
create-release:
Expand All @@ -95,21 +95,21 @@ jobs:
with:
name: swiftlint
path: ${{ env.MACOS_BUILD_DIR }}
- name: Move Bazel release
run: mv -f ${{ env.MACOS_BUILD_DIR }}/bazel.tar.gz ${{ env.MACOS_BUILD_DIR }}/bazel.tar.gz.sha256 .
- name: Download binary artifact for Linux
uses: actions/download-artifact@v4
with:
name: swiftlint_linux_amd64
path: ${{ env.LINUX_BUILD_DIR }}
- name: Make binaries executable
run: chmod +x ${{ env.MACOS_BUILD_DIR }}/swiftlint ${{ env.LINUX_BUILD_DIR }}/swiftlint_linux_amd64
- name: List downloaded files
if: always()
run: |
ls -al .build
ls -al ${{ env.MACOS_BUILD_DIR }}
ls -al ${{ env.LINUX_BUILD_DIR }}
ls -al ${{ env.MACOS_BUILD_DIR }}
- name: Move Bazel release
run: mv -f ${{ env.MACOS_BUILD_DIR }}/bazel.tar.gz ${{ env.MACOS_BUILD_DIR }}/bazel.tar.gz.sha256 .
- name: Make binaries executable
run: chmod +x ${{ env.MACOS_BUILD_DIR }}/swiftlint ${{ env.LINUX_BUILD_DIR }}/swiftlint_linux_amd64
- name: Create SPM artifact bundle
run: make --debug spm_artifactbundle
- name: Update binary target in Swift package
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ bazel_test:

bazel_release: $(SWIFTLINT_EXECUTABLE)
bazel build :release
mv -f bazel-bin/bazel.tar.gz bazel-bin/bazel.tar.gz.sha256 .
mv -f bazel-bin/bazel.tar.gz bazel-bin/bazel.tar.gz.sha256 $(SWIFTLINT_EXECUTABLE) .

docker_image:
docker build --platform linux/amd64 --force-rm --tag swiftlint .
Expand Down

0 comments on commit 6d0f416

Please sign in to comment.