Skip to content

Commit 5a365df

Browse files
committed
ci(pipeline): refactor GitHub Actions for artifact handling
- Adds checkout steps for better dependency management. - Moves artifact upload section to ensure it runs for the correct platforms. - Streamlines jobs by removing redundant checkout steps.
1 parent f12b780 commit 5a365df

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/pipeline.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ jobs:
131131
gitVersion_SemVer: ${{ needs.discovery.outputs.gitVersion_SemVer }}
132132
gitVersion_AssemblySemFileVer: ${{ needs.discovery.outputs.gitVersion_AssemblySemFileVer }}
133133
steps:
134+
- name: checkout
135+
uses: actions/checkout@v4
136+
134137
- name: tools - docker - login ghcr.io
135138
if: ${{ env.build_push == 'true' }}
136139
uses: docker/login-action@v3
@@ -170,13 +173,7 @@ jobs:
170173
${{ env.container_image_repository_dockerhub }}/${{ env.container_image }}:${{ env.gitVersion_SemVer }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
171174
${{ env.container_image_repository_ghcr }}/${{ env.container_image }}:${{ env.gitVersion_SemVer }}-${{ matrix.platform == 'linux/amd64' && 'amd64' || 'arm64' }}
172175
173-
- name: artifacts - upload readme
174-
if: ${{ matrix.platform == 'linux/amd64' }}
175-
uses: actions/upload-artifact@v4
176-
with:
177-
name: readme
178-
path: README.md
179-
retention-days: 1
176+
180177
181178
manifest:
182179
name: build - manifest
@@ -186,6 +183,9 @@ jobs:
186183
env:
187184
gitVersion_SemVer: ${{ needs.discovery.outputs.gitVersion_SemVer }}
188185
steps:
186+
- name: checkout
187+
uses: actions/checkout@v4
188+
189189
- name: tools - docker - login ghcr.io
190190
uses: docker/login-action@v3
191191
with:
@@ -211,6 +211,13 @@ jobs:
211211
${{ env.container_image_repository_ghcr }}/${{ env.container_image }}:${{ env.gitVersion_SemVer }}-amd64 \
212212
${{ env.container_image_repository_ghcr }}/${{ env.container_image }}:${{ env.gitVersion_SemVer }}-arm64
213213
214+
- name: artifacts - upload readme
215+
uses: actions/upload-artifact@v4
216+
with:
217+
name: readme
218+
path: README.md
219+
retention-days: 1
220+
214221
release:
215222
name: release
216223
if: ${{ needs.discovery.outputs.release == 'true' && github.ref == 'refs/heads/main' }}
@@ -220,8 +227,6 @@ jobs:
220227
gitVersion_SemVer: ${{ needs.discovery.outputs.gitVersion_SemVer }}
221228
gitVersion_AssemblySemFileVer: ${{ needs.discovery.outputs.gitVersion_AssemblySemFileVer }}
222229
steps:
223-
- name: checkout
224-
uses: actions/checkout@v4
225230
- name: tools - docker - login ghcr.io
226231
uses: docker/login-action@v3
227232
with:

0 commit comments

Comments
 (0)