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.
26 lines
798 B
26 lines
798 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: bitnami/git
|
|
secrets: [ ssh_key ]
|
|
commands:
|
|
- mkdir -p ~/.ssh
|
|
- echo $ssh_key > ~/.ssh/id_ed25519
|
|
- eval "$(ssh-agent -s)"
|
|
- ssh-add ~/.ssh/id_ed25519
|
|
- git config user.name "Woodpecker"
|
|
- git config user.email "no-reply@mail.ruthenic.com"
|
|
- git clone ssh://git@git.ruthenic.com:2200/Demon/demoncord-builds.git /tmp/demoncord-builds
|
|
- mv dist/build.js /tmp/demoncord-builds
|
|
- cd /tmp/demoncord-builds
|
|
- git commit -am "Update build"
|
|
- git push
|