Skip to content

Commit 85cb5c6

Browse files
committed
setting up for push-button runs
1 parent 36184ba commit 85cb5c6

File tree

1 file changed

+30
-39
lines changed

1 file changed

+30
-39
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Release Observability Artifacts
22

33
on:
4-
push:
5-
branches:
6-
- ci-release
74
workflow_dispatch:
85
inputs:
96
version:
@@ -21,17 +18,11 @@ jobs:
2118
steps:
2219
- name: Checkout code
2320
uses: actions/checkout@v4
24-
- name: Extract version from commit message
25-
id: extract
26-
run: |
27-
COMMIT_MSG="${{ github.event.head_commit.message }}"
28-
VERSION=$(echo "$COMMIT_MSG" | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+')
29-
echo "VERSION=$VERSION" >> $GITHUB_ENV
3021

31-
# - name: Set release version
32-
# id: version
33-
# run: |
34-
# echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
22+
- name: Set release version
23+
id: version
24+
run: |
25+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
3526
3627
- name: Package Grafana artifacts
3728
run: |
@@ -104,36 +95,36 @@ jobs:
10495
cd release-artifacts
10596
sha256sum * > checksums.txt
10697
107-
# - name: Create release
108-
# uses: softprops/action-gh-release@v1
109-
# with:
110-
# tag_name: ${{ steps.version.outputs.VERSION }}
111-
# name: Redis Enterprise Observability ${{ steps.version.outputs.VERSION }}
112-
# body: |
113-
# ## Redis Enterprise Observability Release ${{ steps.version.outputs.VERSION }}
98+
- name: Create release
99+
uses: softprops/action-gh-release@v1
100+
with:
101+
tag_name: ${{ steps.version.outputs.VERSION }}
102+
name: Redis Enterprise Observability ${{ steps.version.outputs.VERSION }}
103+
body: |
104+
## Redis Enterprise Observability Release ${{ steps.version.outputs.VERSION }}
114105
115-
# This release contains individual platform packages for various observability platforms. Each package is versioned and contains both v1 and v2 variants where applicable:
106+
This release contains individual platform packages for various observability platforms. Each package is versioned and contains both v1 and v2 variants where applicable:
116107
117-
# ### 📊 Individual Platform Packages
118-
# - **redis-grafana-${{ steps.version.outputs.VERSION }}**: Complete dashboard collections (v1 & v2)
119-
# - **redis-dynatrace-${{ steps.version.outputs.VERSION }}**: Extensions and dashboards (v1 & v2)
120-
# - **redis-prometheus-${{ steps.version.outputs.VERSION }}**: Alerting rules and configurations (v1 & v2)
121-
# - **redis-newrelic-${{ steps.version.outputs.VERSION }}**: Dashboard collections and configurations (v1 & v2)
122-
# - **redis-datadog-${{ steps.version.outputs.VERSION }}**: Datadog monitoring configurations
108+
### 📊 Individual Platform Packages
109+
- **redis-grafana-${{ steps.version.outputs.VERSION }}**: Complete dashboard collections (v1 & v2)
110+
- **redis-dynatrace-${{ steps.version.outputs.VERSION }}**: Extensions and dashboards (v1 & v2)
111+
- **redis-prometheus-${{ steps.version.outputs.VERSION }}**: Alerting rules and configurations (v1 & v2)
112+
- **redis-newrelic-${{ steps.version.outputs.VERSION }}**: Dashboard collections and configurations (v1 & v2)
113+
- **redis-datadog-${{ steps.version.outputs.VERSION }}**: Datadog monitoring configurations
123114
124-
# Each package is available in both `.tar.gz` and `.zip` formats. For detailed setup instructions, please refer to the README files in each platform directory.
125-
# files: |
126-
# release-artifacts/*
127-
# draft: false
128-
# prerelease: false
129-
# env:
130-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
Each package is available in both `.tar.gz` and `.zip` formats. For detailed setup instructions, please refer to the README files in each platform directory.
116+
files: |
117+
release-artifacts/*
118+
draft: false
119+
prerelease: false
120+
env:
121+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131122

132-
# - name: Upload individual platform packages
133-
# run: |
134-
# echo "Individual platform packages created:"
135-
# ls -la release-artifacts/
136-
# echo "Each package contains the appropriate v1 and v2 variants for the platform"
123+
- name: Upload individual platform packages
124+
run: |
125+
echo "Individual platform packages created:"
126+
ls -la release-artifacts/
127+
echo "Each package contains the appropriate v1 and v2 variants for the platform"
137128
- name: Upload release artifacts
138129
uses: actions/upload-artifact@v4
139130
with:

0 commit comments

Comments
 (0)