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