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

28 lines
911 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"
- git clone "https://BotUser:$ACCESS_TOKEN@git.ruthenic.com/Demon/demoncord-builds.git" /tmp/build
- cp dist/build.js /tmp/build
- cd /tmp/build
- git add .
- git commit --allow-empty -m "Update build"
- git push -u origin master
secrets: [ access_token ]
when:
event: [ push ]