Skip to content

Commit

Permalink
Merge pull request #70 from SiaFoundation/nate/structure-updates
Browse files Browse the repository at this point in the history
Updates for upload-artifact@v4
  • Loading branch information
ChrisSchinnerl authored May 15, 2024
2 parents 9e1d6cb + 8265f68 commit d285634
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ jobs:
apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install unzip dpkg-dev git
- name: Download release artifacts from workflow
uses: dawidd6/action-download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.PROJECT }}
pattern: ${{ env.PROJECT }}-linux-*
path: artifacts
repo: SiaFoundation/${{ env.PROJECT }}
run_id: ${{ env.WORKFLOW_ID }}
run-id: ${{ env.WORKFLOW_ID }}
workflow_conclusion: success

- name: Build .deb packages
Expand All @@ -90,8 +90,7 @@ jobs:
mkdir -p ${BUILD_NAME}/etc/systemd/system
# Copy the ${{ env.PROJECT }} binary
unzip ./artifacts/${{ env.PROJECT }}_linux_${arch}.zip -d ./artifacts/${arch}/
cp ./artifacts/${arch}/${{ env.PROJECT }} ${BUILD_NAME}/usr/bin/${{ env.PROJECT }}
cp ./artifacts/${{ env.PROJECT }}-linux-${arch}/${{ env.PROJECT }} ${BUILD_NAME}/usr/bin/${{ env.PROJECT }}
# Create the control file
echo "Package: ${{ env.PROJECT }}" > ${BUILD_NAME}/DEBIAN/control
Expand Down

0 comments on commit d285634

Please sign in to comment.