Skip to content

Commit

Permalink
Working on pipeline to improve automation
Browse files Browse the repository at this point in the history
this workflow will be used repeatedly for all pb33f products.
  • Loading branch information
daveshanley committed Jul 20, 2022
1 parent 079e6de commit 5747f68
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 43 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: "NPM Publish"

on: push

on:
push:
# run only against tags
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
Expand Down
53 changes: 12 additions & 41 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
project_name: vacuum
before:
hooks:
# You may remove this if you don't use go modules.
Expand All @@ -20,56 +19,28 @@ archives:
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
-
# Name template of the recipe
# Default to project name
name: vacuum

# GitHub/GitLab repository to push the formula to
tap:
- tap:
owner: daveshanley
name: homebrew-vacuum

# Optionally a branch can be provided.
# Defaults to the default repository branch.
branch: main

token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"

# The project name and current git tag are used in the format string.
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"

# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
commit_author:
name: goreleaserbot
email: goreleaser@quobix.com

# Your app's homepage.
# Default is empty.
homepage: "https://quobix.com/vacuum/"
homepage: "https://quobix.com/vacuum"
description: "The worlds fastest and most scalable OpenAPI linter"

# Template of your app's description.
# Default is empty.
description: "The world's fastes, most scalable and industrial strength OpenAPI linter in the world."

# SPDX identifier of your app's license.
# Default is empty.
license: "MIT"

# So you can `brew test` your formula.
# Default is empty.
test: |
system "#{bin}/vacuum --version"
# Custom install script for brew.
# Default is 'bin.install "program"'.
install: |
bin.install "vacuum"
bin.install "vacuum"
snapshot:
name_template: "{{ .Tag }}"

0 comments on commit 5747f68

Please sign in to comment.