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.
|
|
|
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: bitnami/git
|
|
|
|
secrets: [ access_token ]
|
|
|
|
commands:
|
|
|
|
- git config --global user.name "BotUser"
|
|
|
|
- git config --global user.email "awaynian.trow@gmail.com"
|
|
|
|
- git config 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://git.ruthenic.com/Demon/demoncord-builds.git"
|
|
|
|
- git add .
|
|
|
|
- git commit -m "Update build"
|
|
|
|
- git push --force -u origin master
|