From b27ae62e095e949ecd9896c57738980f7f30f5cb Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Sun, 7 Jul 2024 19:16:43 -0500 Subject: [PATCH] Fix woodpecker --- .woodpecker/.build.yaml | 9 ++++++--- .woodpecker/.deploy.yaml | 13 +++++++++++++ .woodpecker/.publish.yaml | 10 ---------- publish.sh | 2 ++ 4 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 .woodpecker/.deploy.yaml delete mode 100644 .woodpecker/.publish.yaml create mode 100644 publish.sh diff --git a/.woodpecker/.build.yaml b/.woodpecker/.build.yaml index 267a1fd..d4f119c 100644 --- a/.woodpecker/.build.yaml +++ b/.woodpecker/.build.yaml @@ -1,7 +1,10 @@ steps: - name: build image: mcr.microsoft.com/dotnet/sdk:8.0 + when: + event: push + branch: master commands: - - mkdir publish - - mkdir publish/j - - touch publish/j/demi \ No newline at end of file + - apt update -y + - apt install -y make zip tar + - make \ No newline at end of file diff --git a/.woodpecker/.deploy.yaml b/.woodpecker/.deploy.yaml new file mode 100644 index 0000000..d0eec15 --- /dev/null +++ b/.woodpecker/.deploy.yaml @@ -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 \ No newline at end of file diff --git a/.woodpecker/.publish.yaml b/.woodpecker/.publish.yaml deleted file mode 100644 index 90bf6d8..0000000 --- a/.woodpecker/.publish.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/publish.sh b/publish.sh new file mode 100644 index 0000000..33d3c44 --- /dev/null +++ b/publish.sh @@ -0,0 +1,2 @@ +. /deploy_dir/setpath.sh +cp -r publish/ "$DEPLOY_DIR" \ No newline at end of file