Skip to content

Release v2.11.2-RC.2 #13

Release v2.11.2-RC.2

Release v2.11.2-RC.2 #13

Workflow file for this run

name: NATS Server Releases
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
run:
name: GitHub Release
runs-on: ${{ vars.GHA_WORKER_RELEASE || 'ubuntu-latest' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Check version matches tag
env:
TRAVIS_TAG: ${{ github.ref_name }}
run: |
go test -race -v -run=TestVersionMatchesTag ./server -ldflags="-X=github.com/nats-io/nats-server/v2/server.serverVersion=$TRAVIS_TAG" -count=1 -vet=off
- name: Install cosign
uses: sigstore/[email protected]
- name: Install syft
uses: anchore/sbom-action/[email protected]
with:
syft-version: "v1.20.0"
- name: Create release
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}