Skip to content

Merge pull request #167 from hyperspike/dependabot/go_modules/sigs.k8… #17

Merge pull request #167 from hyperspike/dependabot/go_modules/sigs.k8…

Merge pull request #167 from hyperspike/dependabot/go_modules/sigs.k8… #17

Workflow file for this run

name: publish
on:
workflow_dispatch:
push:
branches:
- 'release-*'
- 'master'
- 'main'
tags:
- 'v*'
- '!pkg*'
permissions:
contents: write
packages: write
# id-token: write # Uncomment this line if you want to do cosign signing
jobs:
publish:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref_type == 'tag'
steps:
- run: |
gh release create ${{ github.ref_name }} --title "Release ${{ github.ref_name }}" --generate-notes -R $GITHUB_REPOSITORY
env:
GH_TOKEN: ${{ github.token }}
upload-assets:
runs-on: ubuntu-latest
needs: publish
name: Upload release assets
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.23
check-latest: true
- name: Build Installer
run: make build-installer IMG=ghcr.io/${{ github.repository}}:${{ github.ref_name }}
- name: Upload dist/install.yaml to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/install.yaml
asset_name: install.yaml
tag: ${{ github.ref }}
overwrite: true