Skip to content

Commit

Permalink
rm gh create release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
szeort committed Jul 11, 2024
1 parent 1f4ce8a commit f905955
Showing 1 changed file with 9 additions and 46 deletions.
55 changes: 9 additions & 46 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: prepare release artifacts
run: VERSION=${{ steps.version.outputs.version }} make release

- name: Create the draft release
- name: Create draft release
env:
VERSION: ${{ steps.version.outputs.version }}
GH_TOKEN: ${{ github.token }}
Expand All @@ -60,49 +60,12 @@ jobs:
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
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
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
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"

0 comments on commit f905955

Please sign in to comment.