diff --git a/.github/workflows/goreleaser-config-check.yaml b/.github/workflows/goreleaser-config-check.yaml new file mode 100644 index 00000000..a9cc6e7d --- /dev/null +++ b/.github/workflows/goreleaser-config-check.yaml @@ -0,0 +1,29 @@ +--- +name: GoReleaser config check +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + paths: + - .goreleaser.yaml + workflow_dispatch: + +permissions: + contents: read + +jobs: + goreleaser-check: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + with: + fetch-depth: 1 + + - uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6 + with: + install-only: true + + - name: goreleaser check + run: goreleaser check diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 00000000..07fa7e39 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,38 @@ +# .goreleaser.yaml for rpcpool/shredstream-proxy +# +# This file must be committed to the root of the shredstream-proxy source +# repo. GCS upload, cosigning, and GitHub Release publishing are injected via +# ci/goreleaser-patch.yaml in Binaries-ci at build time. +# +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json + +version: 2 + +builds: + - id: jito-shredstream-proxy + builder: rust + binary: jito-shredstream-proxy + targets: + - x86_64-unknown-linux-gnu + flags: + - --release + - --package=jito-shredstream-proxy + +archives: + - id: jito-shredstream-proxy + name_template: jito-shredstream-proxy-linux-amd64 + formats: [binary] + ids: + - jito-shredstream-proxy + +release: + github: + owner: rpcpool + name: shredstream-proxy + draft: true + header: | + rust {{ .Env.RUST_VERSION }} + +changelog: + sort: asc + use: github