Commit d89fbc89 authored by nanahira's avatar nanahira

add trigger of release helper

parent 15d83fc2
Pipeline #3644 failed with stages
in 17 minutes and 7 seconds
...@@ -4,6 +4,7 @@ stages: ...@@ -4,6 +4,7 @@ stages:
- sign - sign
- pack - pack
- deploy - deploy
- notify
variables: variables:
GIT_DEPTH: "1" GIT_DEPTH: "1"
...@@ -444,6 +445,24 @@ upload_to_minio: ...@@ -444,6 +445,24 @@ upload_to_minio:
script: script:
- pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli - pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/mcpro - aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/mcpro
- cd dist
- ls -1 > ../dist-files.txt
- cd ..
artifacts:
paths:
- dist-files.txt
only: only:
- tags - tags
- gitlabci - gitlabci
trigger:
stage: notify
dependencies:
- upload_to_minio
tags:
- linux
script:
- apt update; apt -y install curl jq
- 'curl -X POST https://api.mycard.moe/ygopro/release-helper/release -H "Authorization: $RELEASE_HELPER_TOKEN" -F "name=$CI_COMMIT_TAG" -F "file=@./dist-files.txt" | jq'
only:
- tags
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment