Skip to content

Commit

Permalink
Merge pull request #1049 from mprimi/main
Browse files Browse the repository at this point in the history
Minor fixes and improvements to GH release workflow
  • Loading branch information
mprimi committed Apr 26, 2024
2 parents a08bb05 + f808863 commit a48bfd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yaml
Expand Up @@ -2,7 +2,8 @@ name: Release
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
- v[0-9]+\.[0-9]+\.[0-9]+
- v[0-9]+\.[0-9]+\.[0-9]+-preview\.[0-9]+
jobs:
release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -40,6 +41,9 @@ jobs:
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
set -e
cd nats
go build
cd ..
go test -v --failfast -p=1 ./...
- name: Create GitHub App Token
Expand All @@ -58,4 +62,4 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_APP_TOKEN: ${{ steps.token.outputs.token }}
GITHUB_APP_TOKEN: ${{ steps.token.outputs.token }}
5 changes: 3 additions & 2 deletions .goreleaser.yml
Expand Up @@ -6,6 +6,7 @@ release:
name: natscli
name_template: "Release {{.Version}}"
draft: true
prerelease: auto

changelog:
skip: true
Expand Down Expand Up @@ -59,9 +60,9 @@ brews:
name: homebrew-nats-tools
token: "{{ .Env.GITHUB_APP_TOKEN }}"
url_template: "https://github.com/nats-io/natscli/releases/download/{{ .Tag }}/nats-{{.Version}}-{{ .Os }}-{{ .Arch }}{{if .Arm}}{{.Arm}}{{end}}.zip"
homepage: "https://github.com/nats-io/nats"
homepage: "https://github.com/nats-io/natscli"
description: "NATS utility"
skip_upload: false
skip_upload: auto
test: |
system "#{bin}/nats --version"
install: |
Expand Down

0 comments on commit a48bfd0

Please sign in to comment.