Skip to content

Commit

Permalink
🌱 Update github action for release
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 committed Oct 17, 2023
1 parent 21a02ac commit 76b8c74
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,19 @@ jobs:
pushd release
helm package ../charts/${{ env.CHART_NAME }}/
popd
- name: generate changelog
run: |
echo "# Managed ServiceAccount ${{ needs.env.outputs.RELEASE_VERSION }}" > /home/runner/work/changelog.txt
- name: publish release
uses: ncipollo/release-action@v1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ env.RELEASE_VERSION }}
artifacts: "go/src/open-cluster-management.io/managed-serviceaccount/release/*.tgz"
token: ${{ secrets.GITHUB_TOKEN }}
body_path: /home/runner/work/changelog.txt
files: |
release/*.tgz
draft: true
generate_release_notes: true
- name: submit charts to OCM chart repo
uses: actions/github-script@v6
with:
Expand All @@ -138,24 +145,3 @@ jobs:
console.error(error);
core.setFailed(error);
}
release-notes:
name: release-notes
runs-on: ubuntu-latest
needs: [ env ]
steps:
- name: checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/managed-serviceaccount
- name: generate changelog
run: |
echo "# Managed ServiceAccount ${{ needs.env.outputs.RELEASE_VERSION }}" > /home/runner/work/changelog.txt
- name: publish release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: /home/runner/work/changelog.txt
draft: true
generate_release_notes: true

0 comments on commit 76b8c74

Please sign in to comment.