Skip to content

Commit

Permalink
feat(meta): add release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijit-hota committed Jun 13, 2022
1 parent 8ce7bea commit 2284736
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
tmp
temp
*db-journal
node_modules
node_modules
dist/
12 changes: 6 additions & 6 deletions api/.air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,31 @@ tmp_dir = "tmp"
bin = "./tmp/main"
cmd = "go build -ldflags '-s -w' -o ./tmp/main ."
delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata", "frontend"]
exclude_dir = ["assets", "tmp", "vendor", "testdata", "frontend-dist", "dist"]
exclude_file = []
exclude_regex = ["_test.go"]
exclude_unchanged = false
follow_symlink = false
full_bin = ""
include_dir = []
include_ext = ["go", "tpl", "tmpl", "html", "db"]
include_ext = ["go", "tpl", "tmpl", "html"]
kill_delay = "0s"
log = "build-errors.log"
send_interrupt = false
stop_on_error = true

[color]
app = ""
app = "pink"
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"

[log]
time = false
time = true

[misc]
clean_on_exit = false
clean_on_exit = true

[screen]
clear_on_rebuild = false
clear_on_rebuild = true
29 changes: 29 additions & 0 deletions api/.goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
project_name: rengoku
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- sh -c "cd ../frontend && npm run build"
builds:
- env: [CGO_ENABLED=0]
targets:
- go_118_first_class
archives:
- replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
format_overrides:
- goos: windows
format: zip
nfpms:
- id: linux-packs
maintainer: Abhijit Hota <[email protected]>
description: 'Rengoku: A Powerful Bookmark Manager'
homepage: https://github.com/abhijit-hota/rengoku
license: MIT
formats:
- deb
- rpm
1 change: 1 addition & 0 deletions api/frontend-dist/assets/index.08dd52ed.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions api/frontend-dist/assets/index.2d1dc04a.js

Large diffs are not rendered by default.

Binary file added api/frontend-dist/favicon.ico
Binary file not shown.
15 changes: 15 additions & 0 deletions api/frontend-dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rengoku</title>
<script type="module" crossorigin src="/assets/index.2d1dc04a.js"></script>
<link rel="stylesheet" href="/assets/index.08dd52ed.css">
</head>

<body>

</body>
</html>
3 changes: 0 additions & 3 deletions api/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ require (
github.com/json-iterator/go v1.1.12 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/kennygrant/sanitize v1.2.4 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-sqlite3 v1.14.13 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect
github.com/rogpeppe/go-internal v1.8.0 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/tdewolff/parse/v2 v2.5.29 // indirect
github.com/ugorji/go/codec v1.2.7 // indirect
Expand Down
2 changes: 1 addition & 1 deletion frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export default defineConfig({
},
},
build: {
outDir: "../api/dist"
outDir: "../api/frontend-dist"
}
});

0 comments on commit 2284736

Please sign in to comment.