ci: update steps
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
张泊明518370910136 2024-03-25 02:43:47 -04:00
parent b59380ad4e
commit 93079b5b7b
GPG Key ID: D47306D7062CDA9D

View File

@ -9,13 +9,24 @@ server:
from_secret: joj3-test
steps:
- name: prepare
commands:
- export PATH=$PATH:/usr/local/go/bin
- go env -w GOPROXY=https://goproxy.cn,direct
- echo $SHELL
- echo $PATH
- go version
- name: build
commands:
- export PATH=$PATH:/usr/local/go/bin
- make
- name: test
environment:
CONF_GITEATOKEN:
from_secret: gitea-token
commands:
- export PATH=$PATH:/usr/local/go/bin
- go env -w GOPROXY=https://goproxy.cn,direct
- make
- make test
- name: store
commands:
- cp build/joj3 /home/drone/.local/bin/joj3