Skip to content

Commit

Permalink
Merge pull request #10 from innovatrics/bugfix/ci-release-permissions
Browse files Browse the repository at this point in the history
Using GHCli for release
  • Loading branch information
blaskoa authored Jan 18, 2024
2 parents 361e1f2 + 5a53eae commit c328cb0
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,10 @@ jobs:
helm package .
- name: Helm | Push
run: helm push ${{ steps.chart_info.outputs.chart_name }}-${{ steps.chart_info.outputs.chart_version }}.tgz $HELM_REGISTRY
- name: release
uses: actions/create-release@v1
- name: Release
id: create_release
with:
draft: true
prerelease: false
release_name: Smartface Helm ${{ steps.chart_info.outputs.chart_version }}
tag_name: ${{ github.ref }}
# TODO somehow parse only changes relevant to current version
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Chart package as release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.chart_info.outputs.chart_name }}-${{ steps.chart_info.outputs.chart_version }}.tgz
asset_name: ${{ steps.chart_info.outputs.chart_name }}-${{ steps.chart_info.outputs.chart_version }}.tgz
asset_content_type: application/gzip
run: |
gh release create --draft --title "Smartface Helm ${{ steps.chart_info.outputs.chart_version }}" --notes-file CHANGELOG.md ${{ github.ref }}
gh release upload ${{ github.ref }} ${{ steps.chart_info.outputs.chart_name }}-${{ steps.chart_info.outputs.chart_version }}.tgz

0 comments on commit c328cb0

Please sign in to comment.