Skip to content

Merge pull request #281 from kaytu-io/feat-add-auto-install #83

Merge pull request #281 from kaytu-io/feat-add-auto-install

Merge pull request #281 from kaytu-io/feat-add-auto-install #83

Workflow file for this run

name: Test
on:
push:
branches:
- main
env:
REPOSITORY_OWNER: "kaytu-io"
REPOSITORY_NAME: "kaytu"
HOMEBREW_TAP: "homebrew-cli-tap"
OWNER_EMAIL: "[email protected]"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Install cosign
run: |
curl -O -L "https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64"
sudo mv cosign-linux-amd64 /usr/local/bin/cosign
sudo chmod +x /usr/local/bin/cosign
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean --skip homebrew --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_PWD: ${{ secrets.COSIGN_PWD }}
COSIGN_SECRET: ${{ secrets.COSIGN_SECRET }}
REPOSITORY_OWNER: ${{ github.repository_owner }}
REPOSITORY_NAME: ${{ github.event.repository.name }}