Skip to content

Merge branch 'main' of https://github.com/ngyewch/hydra-login-consent #12

Merge branch 'main' of https://github.com/ngyewch/hydra-login-consent

Merge branch 'main' of https://github.com/ngyewch/hydra-login-consent #12

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
tags: ['*']
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "~1.23"
- name: Run GoReleaser (release)
uses: goreleaser/goreleaser-action@v6
if: "startsWith(github.ref, 'refs/tags/')"
with:
version: "2"
args: "release --clean"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser (snapshot)
uses: goreleaser/goreleaser-action@v6
if: "!startsWith(github.ref, 'refs/tags/')"
with:
version: "2"
args: "build --snapshot --clean --single-target"