From 032133b54a7df82c97b9ddec4c7c4f4c882a9316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 16 Oct 2023 20:27:06 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=9C=A8=E6=9E=81=E7=8B=90=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 14 ++++++++++++++ .goreleaser.yaml | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44d66d5c44..63872ef6ed 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 61272073b0..cad46e08f9 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