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: