Skip to content

Commit

Permalink
build: Generate and upload release artifacts in one step
Browse files Browse the repository at this point in the history
  • Loading branch information
dlipovetsky committed Oct 18, 2023
1 parent 1ae51c0 commit 7712485
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,24 @@ 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 }} \
--title ${{ env.version }} \
--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
Expand Down

0 comments on commit 7712485

Please sign in to comment.