build: ci adjustments (#11)

* build: git status step

* repo: add gitignore

* build: remove --skip-validate for snapshot builds

* build: remove --skip-validate for publish builds
This commit is contained in:
l3uddz
2021-02-15 19:06:02 +00:00
committed by GitHub
parent d92881e4b1
commit 95cf1fe961
3 changed files with 17 additions and 2 deletions

View File

@@ -44,6 +44,9 @@ jobs:
run: | run: |
make vendor make vendor
# git status
- run: git status
# build # build
- name: build - name: build
if: startsWith(github.ref, 'refs/tags/') == false if: startsWith(github.ref, 'refs/tags/') == false

12
.gitignore vendored Normal file
View File

@@ -0,0 +1,12 @@
# misc
/.idea/
/.vscode/
# configuration
config.yml
# vendor files
/vendor/
# dist folder
/dist/

View File

@@ -44,11 +44,11 @@ release: check_goreleaser ## Generate a release, but don't publish
.PHONY: publish .PHONY: publish
publish: check_goreleaser ## Generate a release, and publish publish: check_goreleaser ## Generate a release, and publish
goreleaser --rm-dist --skip-validate goreleaser --rm-dist
.PHONY: snapshot .PHONY: snapshot
snapshot: check_goreleaser ## Generate a snapshot release snapshot: check_goreleaser ## Generate a snapshot release
goreleaser --snapshot --skip-validate --skip-publish --rm-dist goreleaser --snapshot --skip-publish --rm-dist
.PHONY: help .PHONY: help
help: help: