ci: run with gitea token
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
张泊明518370910136 2024-03-06 03:17:21 -05:00
parent 93ce120758
commit 0abd1158fb
GPG Key ID: D47306D7062CDA9D
2 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,9 @@ server:
steps:
- name: build
environment:
CONF_GITEATOKEN:
from_secret: gitea-token
commands:
- export PATH=$PATH:/usr/local/go/bin
- go env -w GOPROXY=https://goproxy.cn,direct

View File

@ -5,7 +5,7 @@
In order to register sandbox executor, you need to run go-judge before running this program.
```bash
$ make clean && make && ./_example/success/run.sh && ./_example/compile_error/run.sh
$ export CONF_GITEATOKEN="<YOUR_TOKEN>" && make clean && make && ./_example/success/run.sh && ./_example/compile_error/run.sh
rm -rf ./build/*
rm -rf *.out
go build -o ./build/joj3 ./cmd/joj3