diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44d66d5c..63872ef6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,3 +50,17 @@ build: paths: - $OUTPUT_NAME expire_in: 3 days + +release: + stage: release + image: + name: goreleaser/goreleaser + entrypoint: [''] + only: + - tags + variables: + # Disable shallow cloning so that goreleaser can diff between tags to + # generate a changelog. + GIT_DEPTH: 0 + script: + - goreleaser release --clean diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 61272073..cad46e08 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -32,3 +32,21 @@ archives: - scripts/* - resources/* - panel-example.conf + +gitlab_urls: + api: https://jihulab.com/api/v4/ + download: https://jihulab.com + + # set to true if you use a self-signed certificate + skip_tls_verify: false + + # set to true if you want to upload to the Package Registry rather than attachments + # Only works with GitLab 13.5+ + # + # Since: v1.3 + use_package_registry: true + + # Set this if you set GITLAB_TOKEN to the value of CI_JOB_TOKEN. + # + # Since: v1.11 + use_job_token: true