From 3d2a3d66f817b3d9da22038939dd38394930afca Mon Sep 17 00:00:00 2001 From: Jared Proffitt Date: Thu, 13 Mar 2025 08:39:54 -0500 Subject: [PATCH] adjust release workflow --- .github/workflows/release.yml | 21 +++++++++++++++++++++ .github/workflows/test.yaml | 9 ++++----- 2 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c5afbcc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Release cogs binaries + +on: + release: + types: [created] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: "1.24" + - run: go mod tidy + - uses: goreleaser/goreleaser-action@v5 + with: + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a60cf28..bdc4d14 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,10 +1,9 @@ on: pull_request: - branches: - - '*' - push: - branches: - - master + branches: [ master ] + merge_group: + branches: [ master ] + name: Test jobs: test: