Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove create-release actions #18

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 25 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,41 +42,30 @@ jobs:

- name: prepare release artifacts
run: VERSION=${{ steps.version.outputs.version }} make release
- name: Github release
uses: actions/create-release@v1
id: gh_release
with:
draft: false
prerelease: false
release_name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
body_path: RELEASE.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload cfapi crd
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.gh_release.outputs.upload_url }}
asset_path: ./release-${{ steps.version.outputs.version }}/cfapi-crd.yaml
asset_name: cfapi-crd.yaml
asset_content_type: yaml
- name: upload release default CR yaml
uses: actions/upload-release-asset@v1

- name: Create draft release
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.gh_release.outputs.upload_url }}
asset_path: ./release-${{ steps.version.outputs.version }}/cfapi-default-cr.yaml
asset_name: cfapi-default-cr.yaml
asset_content_type: yaml
- name: upload release controller yaml
uses: actions/upload-release-asset@v1
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:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.gh_release.outputs.upload_url }}
asset_path: ./release-${{ steps.version.outputs.version }}/cfapi-manager.yaml
asset_name: cfapi-manager.yaml
asset_content_type: yaml
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"
gh release upload "${VERSION}" "./release-${VERSION}/cfapi-manager.yaml"