From b078668854be073257453c549d5e5d7866e1010c Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Sat, 17 Sep 2022 16:20:25 -0400 Subject: [PATCH] take 3 --- .woodpecker.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 44472a4..3b5de00 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -9,10 +9,16 @@ pipeline: when: event: [ pull_request, push ] publish: - image: plugins/git-push - secrets: [ ssh_key ] - settings: - path: ./dist - remote: ssh://git@git.ruthenic.com:2200/Demon/demoncord-builds.git - commit: true - commit_message: "Update build" + image: bitnami/git + secrets: [ access_token ] + commands: + - git config --global user.name "BotUser" + - git config --global user.email "awaynian.trow@gmail.com" + - git config --global user.password $access_token + - mkdir /tmp/build + - cp dist/build.js /tmp/build + - cd /tmp/build + - git init . + - git remote add origin https://git.ruthenic.com/Demon/demoncord-builds.git + - git commit -am "Update build" + - git push --force