This commit is contained in:
parent
74795db477
commit
2a7de7dab2
39
.drone.yml
Normal file
39
.drone.yml
Normal file
@ -0,0 +1,39 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: main
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
||||
steps:
|
||||
- name: build-windows
|
||||
image: nimlang/nim
|
||||
commands:
|
||||
- apt update
|
||||
- apt install -y mingw-w64
|
||||
- nimble build -y -d:mingw
|
||||
|
||||
- name: build-linux
|
||||
image: nimlang/nim
|
||||
commands:
|
||||
- nimble build -y
|
||||
- mv passphrase passphrase_linux
|
||||
|
||||
- name: release
|
||||
image: plugins/gitea-release
|
||||
when:
|
||||
event: tag
|
||||
depends_on:
|
||||
- build-windows
|
||||
- build-linux
|
||||
settings:
|
||||
base_url: 'https://git.jfmonty2.com/jfmonty2/passphrase.git'
|
||||
files:
|
||||
- passphrase_linux
|
||||
- passphrase.exe
|
||||
api_key:
|
||||
from_secret: gitea_token
|
Loading…
x
Reference in New Issue
Block a user