Skip to content

Commit e547bbe

Browse files
committed
tweaks to the release pipeline
1 parent 46337c2 commit e547bbe

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/release.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,43 @@ jobs:
2020
helm repo add ncsa https://opensource.ncsa.illinois.edu/charts/
2121
helm dep build
2222
23+
- name: get release info
24+
id: release_info
25+
run: |
26+
version="$(awk '/^version:/ { print $2} ' Chart.yaml)"
27+
changelog="$(sed -e "1,/^### ${version}/d" -e "/^###/,\$d" -e '/^$/d' README.md)"
28+
changelog="${changelog//'%'/'%25'}"
29+
changelog="${changelog//$'\n'/'%0A'}"
30+
changelog="${changelog//$'\r'/'%0D'}"
31+
echo "::set-output name=version::$version"
32+
echo "::set-output name=changelog::$changelog"
33+
2334
- name: Publish to NCSA OpenSource
2435
uses: bsord/helm-push@v3
2536
with:
2637
username: ${{ secrets.HELM_USERNAME }}
2738
password: ${{ secrets.HELM_PASSWORD }}
2839
repository-url: "https://opensource.ncsa.illinois.edu/charts"
2940
chart-folder: "."
30-
force: false
41+
force: true
42+
43+
- name: create release
44+
uses: actions/create-release@v1
45+
id: create_release
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
with:
49+
tag_name: ${{ steps.release_info.outputs.version }}
50+
release_name: Release ${{ steps.release_info.outputs.version }}
51+
body: ${{ steps.release_info.outputs.changelog }}
52+
53+
- name: Upload Release Asset
54+
id: upload-release-asset
55+
uses: actions/upload-release-asset@v1
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
with:
59+
upload_url: ${{ steps.create_release.outputs.upload_url }}
60+
asset_path: ./clowder-${{ steps.release_info.outputs.version }}.tgz
61+
asset_name: clowder-${{ steps.release_info.outputs.version }}.tgz
62+
asset_content_type: application/zip

Chart.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ maintainers:
2525
- name: Rob Kooper
2626
2727

28+
# location of source code
29+
sources:
30+
- https://github.com/clowder-framework/clowder
31+
32+
annotations:
33+
artifacthub.io/links: |
34+
- name: Helm Chart
35+
url: https://github.com/clowder-framework/clowder-helm
36+
artifacthub.io/changes: |
37+
- update clowder to 1.14.1
38+
- helm chart now in https://github.com/clowder-framework/clowder-helm
39+
2840
# Dependencies for clowder. Some of the dependencies are only installed if they
2941
# are enabled.
3042
dependencies:

0 commit comments

Comments
 (0)