Fix woodpecker
This commit is contained in:
parent
e39f4e868c
commit
b27ae62e09
|
@ -1,7 +1,10 @@
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
branch: master
|
||||||
commands:
|
commands:
|
||||||
- mkdir publish
|
- apt update -y
|
||||||
- mkdir publish/j
|
- apt install -y make zip tar
|
||||||
- touch publish/j/demi
|
- make
|
|
@ -0,0 +1,13 @@
|
||||||
|
steps:
|
||||||
|
- name: deploy
|
||||||
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
branch: master
|
||||||
|
commands:
|
||||||
|
- apt update -y
|
||||||
|
- apt install -y make zip tar
|
||||||
|
- make
|
||||||
|
- bash publish.sh
|
||||||
|
volumes:
|
||||||
|
- /mnt/20TB/Artifacts:/deploy_dir
|
|
@ -1,10 +0,0 @@
|
||||||
steps:
|
|
||||||
- name: deploy
|
|
||||||
image: woodpeckerci/plugin-release
|
|
||||||
settings:
|
|
||||||
files:
|
|
||||||
- 'publish/j/demi'
|
|
||||||
api_key:
|
|
||||||
from_secret: API_KEY
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
. /deploy_dir/setpath.sh
|
||||||
|
cp -r publish/ "$DEPLOY_DIR"
|
Loading…
Reference in New Issue