diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 684b3dc..37f5310 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -49,8 +49,10 @@ archives: - LICENSE # Add the compiled UI to the archive. # This will place the contents of ui/dist into a 'ui' directory in the archive. - - src: ui/dist/**/* - dst: ui + - src: ui/dist/mbe-mining-dashboard.js + strip_parent: true + + checksum: name_template: 'checksums.txt' @@ -97,7 +99,10 @@ release: ## Mining Release {{ .Tag }} **Full Changelog**: https://github.com/Snider/Mining/compare/{{ .PreviousTag }}...{{ .Tag }} - + # Upload the standalone UI file as a release asset. + extra_files: + - glob: mbe-mining-dashboard.js + name_template: "mbe-mining-dashboard-{{ .Version }}.js" # Announce releases announce: diff --git a/ui/package.json b/ui/package.json index dc80094..2640ca5 100644 --- a/ui/package.json +++ b/ui/package.json @@ -4,7 +4,7 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build": "ng build", + "build": "ng build --output-path=dist && cat dist/{runtime,polyfills,main}.js > dist/mbe-mining-dashboard.js", "watch": "ng build --watch --configuration development", "test": "ng test" },