Skip to content

Commit

Permalink
Experiment with single zipball
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Nov 15, 2024
1 parent 766da35 commit 3d9dc4f
Showing 1 changed file with 24 additions and 46 deletions.
70 changes: 24 additions & 46 deletions .github/workflows/master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,56 +278,34 @@ jobs:
env:
CGO_ENABLED: 0

# Do artifacts for upload to workflow URL
- name: Generate artifacts
run: ./.ci-scripts/generate_artifacts.sh ${{ github.workspace }}/artifacts
# Replace the individual upload-artifact steps with this
- name: Create and checksum release archives
run: |
mkdir -p artifacts
echo "# Archive checksums" > artifacts/checksums.txt
for item in darwin_amd64 darwin_arm64 linux_amd64 linux_arm64; do
pushd .gotmp/bin/${item} >/dev/null
tar -zxf ../completions.tar.gz
zip ../../artifacts/ddev_${item}.zip ddev ddev_*completion* ddev_fig_spec.ts
popd >/dev/null
done
for item in windows_amd64 windows_arm64; do
pushd .gotmp/bin/${item} >/dev/null
zip ../../artifacts/ddev_${item}.zip ddev.exe ddev*installer.exe
popd >/dev/null
done
# Create checksums
cd artifacts
sha256sum *.zip >>checksums.txt
- name: Upload all artifacts
uses: actions/upload-artifact@v4
with:
name: all-ddev-executables
path: ${{ github.workspace }}/artifacts/*
- name: Upload macos-amd64 binary
uses: actions/upload-artifact@v4
with:
name: ddev-macos-amd64
path: .gotmp/bin/darwin_amd64/ddev
- name: Upload macos-arm64 binary
uses: actions/upload-artifact@v4
with:
name: ddev-macos-arm64
path: .gotmp/bin/darwin_arm64/ddev
- name: Upload linux-arm64 binary
uses: actions/upload-artifact@v4
with:
name: ddev-linux-arm64
path: .gotmp/bin/linux_arm64/ddev
- name: Upload linux-amd64 binary
uses: actions/upload-artifact@v4
with:
name: ddev-linux-amd64
path: .gotmp/bin/linux_amd64/ddev
- name: Upload windows-amd64 binary
uses: actions/upload-artifact@v4
with:
name: ddev-windows-amd64
path: .gotmp/bin/windows_amd64/ddev.exe

- name: Upload windows_amd64 installer
uses: actions/upload-artifact@v4
with:
name: ddev-windows-amd64-installer
path: .gotmp/bin/windows_amd64/ddev_windows_amd64_installer*.exe
- name: Upload windows-arm64 binary
uses: actions/upload-artifact@v4
with:
name: ddev-windows-arm64
path: .gotmp/bin/windows_arm64/ddev.exe
- name: Upload windows_arm64 installer
uses: actions/upload-artifact@v4
with:
name: ddev-windows-arm64-installer
path: .gotmp/bin/windows_arm64/ddev_windows_arm64_installer*.exe
name: ddev-head-artifacts
path: |
artifacts/*.zip
artifacts/checksums.txt
- name: Show github.ref
run: echo ${{ github.ref }}
Expand Down

0 comments on commit 3d9dc4f

Please sign in to comment.