feat: add templating command (#65) #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- .github/** | |
- docs/** | |
- LICENSES/** | |
- README.md | |
- mkdocs.yaml | |
workflow_run: | |
workflows: [CI] | |
types: [completed] | |
branches: [main] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ">=1.19.0" | |
check-latest: true | |
cache: true | |
- name: Create Helm Compose Distributions | |
run: make dist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: helm-compose | |
path: release/* | |
- name: Publish release | |
if: "contains(github.event.head_commit.message, 'docs: release')" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
TAG=$(git describe --abbrev=0) | |
for FILE in release/*.tgz; do | |
gh release upload ${TAG} ${FILE} --clobber | |
done | |
gh release edit ${TAG} --latest --prerelease=false |