mirror of
https://github.com/stakater/Reloader.git
synced 2026-02-14 18:09:50 +00:00
40 lines
889 B
YAML
40 lines
889 B
YAML
name: Release Helm chart
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "chart-v*"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release-helm-chart:
|
|
name: Release Helm chart
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Create release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
tag: ${{ github.ref }}
|
|
run: |
|
|
gh release create "$tag" \
|
|
--repo="$GITHUB_REPOSITORY" \
|
|
--title="Helm chart ${tag#chart-}" \
|
|
--generate-notes
|
|
|
|
- name: Notify Slack
|
|
uses: 8398a7/action-slack@v3
|
|
if: always()
|
|
with:
|
|
status: ${{ job.status }}
|
|
fields: repo,author,action,eventName,ref,workflow
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
|