Skip to content

Commit 0c66b4b

Browse files
author
privapps
committed
Enhance release workflow by uploading artifacts and organizing them for the release process
1 parent 0be246b commit 0c66b4b

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,32 @@ jobs:
112112
echo "Built and gzipped binary: $GZ_BINARY_NAME"
113113
ls -la "$GZ_BINARY_NAME"
114114
115-
- name: Upload Release Asset
115+
- name: Upload artifact
116+
uses: actions/upload-artifact@v4
117+
with:
118+
name: binary-${{ matrix.goos }}-${{ matrix.goarch }}
119+
path: ./github-copilot-svcs-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.suffix }}.gz
120+
121+
create-release:
122+
needs: [release, build]
123+
runs-on: ubuntu-latest
124+
steps:
125+
- name: Download all artifacts
126+
uses: actions/download-artifact@v4
127+
with:
128+
path: ./artifacts
129+
130+
- name: Organize artifacts
131+
run: |
132+
mkdir -p ./release-assets
133+
find ./artifacts -name "*.gz" -exec cp {} ./release-assets/ \;
134+
ls -la ./release-assets/
135+
136+
- name: Create Release
116137
uses: softprops/action-gh-release@v2
117138
with:
118139
tag_name: ${{ needs.release.outputs.version }}
119-
files: ./github-copilot-svcs-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.suffix }}.gz
140+
files: ./release-assets/*
120141
body: |
121142
## Changes in ${{ needs.release.outputs.version }}
122143
@@ -131,7 +152,7 @@ jobs:
131152
- Windows ARM64: `github-copilot-svcs-windows-arm64.exe.gz`
132153
133154
docker:
134-
needs: release
155+
needs: [release, create-release]
135156
runs-on: ubuntu-latest
136157
steps:
137158
- name: Checkout code

0 commit comments

Comments
 (0)