aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorishaan <contact@ishaan.cc>2026-07-15 11:36:31 +0530
committerishaan <contact@ishaan.cc>2026-07-15 11:36:31 +0530
commit57cc3b22f8308a44dbd09587c39ba4f790fbcf9d (patch)
treec2dd5bcfe9658129412990b6a2456fa4caf3db25 /.gitlab-ci.yml
parentd369e5611df643bd83f951a94b468ef272c1bf3e (diff)
ci: add goreleaser, install script, gitlab ci
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..dfce3ce
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,21 @@
+stages:
+ - test
+ - release
+
+test:
+ stage: test
+ image: golang:1.26
+ script:
+ - go test ./...
+ rules:
+ - if: $CI_COMMIT_TAG
+ when: never
+ - when: on_success
+
+release:
+ stage: release
+ image: goreleaser/goreleaser:latest
+ script:
+ - goreleaser release
+ rules:
+ - if: $CI_COMMIT_TAG