-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #824 from carvel-dev/remove-formating-on-release
Do not run fmt and mod vendor when creating a release
- Loading branch information
Showing
5 changed files
with
33 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -e -x -u | ||
|
||
# build website assets | ||
rm -f pkg/website/generated.go | ||
( | ||
# Use newly built binary to template all website assets | ||
# into a single Go file | ||
cd pkg/website | ||
go run ./../../cmd/ytt \ | ||
-f . \ | ||
-f ../../examples/playground/basics \ | ||
-f ../../examples/playground/overlays \ | ||
-f ../../examples/playground/getting-started \ | ||
--file-mark 'alt-example**/*:type=data' \ | ||
--file-mark 'example**/*:type=data' \ | ||
--file-mark 'generated.go.txt:exclusive-for-output=true' \ | ||
--dangerous-emptied-output-directory ../../tmp/ | ||
) | ||
mv tmp/generated.go.txt pkg/website/generated.go |