diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 939ebb46f0ff108b909b8ad11f314c5158ff9c10..3cd152290183c4787148fb30d40f181384bb13ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,37 +1,9 @@ name: build - -on: - workflow_dispatch: - push: - branches: - - main - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -permissions: - contents: write - packages: write +on: [push, pull_request] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - run: git fetch --force --tags - - - uses: actions/setup-go@v5 - with: - go-version: ">=1.23.2" - cache: true - cache-dependency-path: go.sum - - - run: go mod download - - - uses: goreleaser/goreleaser-action@v6 - with: - distribution: goreleaser - version: latest - args: build --snapshot --clean + build-go: + uses: charmbracelet/meta/.github/workflows/build.yml@main + with: + go-version: "" + go-version-file: ./go.mod