You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
demoncord-rewrite/.woodpecker.yml

30 lines
950 B

pipeline:
build:
image: node:18-alpine
commands:
- npm install -g pnpm
- pnpm i
- echo -e "[values]\n_DEBUG=0\n_CORS_URL='https://cors.ruthenic.com/'" > options.toml
- pnpm build
when:
event: [ pull_request, push ]
publish:
image: alpine/git
commands:
- git config --global credential.helper store
- git config --global user.name "BotUser"
- git config --global user.email "awaynian.trow@gmail.com"
- git config --global user.password $ACCESS_TOKEN
- git config --global init.defaultBranch "master"
- mkdir /tmp/build
- cp dist/build.js /tmp/build
- cd /tmp/build
- git init .
- git remote add origin "https://BotUser:$ACCESS_TOKEN@git.ruthenic.com/Demon/demoncord-builds.git"
- git add .
- git commit -m "Update build"
- git push --force -u origin master
secrets: [ access_token ]
when:
event: [ push ]