Skip to content

Commit

Permalink
Generate licenses as part of github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
the-maldridge committed Apr 19, 2020
1 parent 817a26b commit 497e53b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
- name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14.x
-
name: Run GoReleaser
- name: Vendor packages
run: go mod vendor
- name: Collect 3rd party licenses
run: ./scripts/vendor-licenses -gen > NOTICE
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
Expand Down
4 changes: 0 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
before:
hooks:
- go mod vendor
- ./scripts/vendor-licenses -gen > NOTICE
builds:
- id: localize
main: ./cmd/localize/main.go
Expand Down

0 comments on commit 497e53b

Please sign in to comment.