diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9648f0663..0681d4502 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,14 +43,6 @@ jobs: REGISTRY=${{ env.registry }} \ CAPVCD_IMG=${{ env.repository }} \ VERSION=${{ env.version }} - - name: Generate GitHub release artifacts - # See note on make variables, above. - run: | - make release-manifests \ - --makefile d2iq.Makefile - REGISTRY=${{ env.registry }} \ - CAPVCD_IMG=${{ env.repository }} \ - VERSION=${{ env.version }} - name: Create (draft) GitHub release run: | gh release create ${{ env.version }} \ @@ -58,8 +50,17 @@ jobs: --draft env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload GitHub release artifacts + - name: Generate release artifacts, and attach them to the GitHub release + # Because steps do not share data, the artifacts must be generated and + # uploaded in one step. + # + # Also see note on make variables, above. run: | + make release-manifests \ + --makefile d2iq.Makefile + REGISTRY=${{ env.registry }} \ + CAPVCD_IMG=${{ env.repository }} \ + VERSION=${{ env.version }} gh release upload ${{ env.version }} \ metadata.yaml \ templates/infrastructure-components.yaml