Skip to content

Commit

Permalink
make release with gh
Browse files Browse the repository at this point in the history
  • Loading branch information
szeort committed Jul 11, 2024
1 parent 8c4fa4f commit 27c7ee8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,32 @@ jobs:

- name: prepare release artifacts
run: VERSION=${{ steps.version.outputs.version }} make release

- name: Create the draft release
env:
VERSION: ${{ steps.version.outputs.version }}
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
gh release create "${VERSION}" --draft --notes-file RELEASE.md
- name: Publish Release
env:
VERSION: ${{ steps.version.outputs.version }}
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
gh release edit "${VERSION}" --draft=false --latest
- name: Upload release artifacts
env:
VERSION: ${{ steps.version.outputs.version }}
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
gh release upload "${VERSION}" "./release-${VERSION}/cfapi-default-cr.yaml"
gh release upload "${VERSION}" "./release-${VERSION}/cfapi-crd.yaml"
- name: Github release
uses: actions/create-release@v1
id: gh_release
Expand Down

0 comments on commit 27c7ee8

Please sign in to comment.