Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
更新 '.drone.yml'
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoo committed May 3, 2022
1 parent 4e22d37 commit 80b9f50
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 14 deletions.
42 changes: 30 additions & 12 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,34 @@
kind: pipeline
name: default
steps:
- name: Build Web
image: node
commands:
- export NODE_OPTIONS=--openssl-legacy-provider
- npm config set registry https://registry.npmjs.org
- yarn config set registry https://registry.yarnpkg.com
- npm install -g @quasar/cli
- chmod +x upx.sh;cd GroupManager/Web;yarn install;quasar build
- name: fetch
image: docker:git
commands:
- git fetch --tags
- name: Build Web
image: node
commands:
- export NODE_OPTIONS=--openssl-legacy-provider
- npm config set registry https://registry.npmjs.org
- yarn config set registry https://registry.yarnpkg.com
- npm install -g @quasar/cli
- cd GroupManager/Web;yarn install;quasar build
- name: test
image: golang
commands:
- go mod tidy
- go test -v ./...
image: golang
commands:
- go mod tidy
- go test -v ./...
- name: release
image: goreleaser/goreleaser
environment:
GITEA_TOKEN:
from_secret: GITEA_TOKEN
commands:
- goreleaser release
when:
event: tag
gitea_urls:
api: https://git.mcenjoy.cn/api/v1/
download: https://git.mcenjoy.cn
# set to true if you use a self-signed certificate
skip_tls_verify: true
7 changes: 5 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ builds:
goarch: arm64
- goos: android
goarch: 386
hooks:
post: ./upx.sh {{ .Os }} {{ .Path }}
archives:
-
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
Expand Down Expand Up @@ -66,3 +64,8 @@ changelog:
exclude:
- '^docs:'
- '^test:'
gitea_urls:
api: https://git.mcenjoy.cn/api/v1/
download: https://git.mcenjoy.cn
# set to true if you use a self-signed certificate
skip_tls_verify: true

0 comments on commit 80b9f50

Please sign in to comment.