forked from CringeStudios/gamja
ci: add deploy task
This commit is contained in:
parent
bbfeb5bcbc
commit
a57428002f
@ -1,10 +1,18 @@
|
|||||||
image: alpine/latest
|
image: alpine/latest
|
||||||
packages:
|
packages:
|
||||||
- npm
|
- npm
|
||||||
|
- rsync
|
||||||
sources:
|
sources:
|
||||||
- https://git.sr.ht/~emersion/gamja
|
- https://git.sr.ht/~emersion/gamja
|
||||||
|
secrets:
|
||||||
|
- 5874ac5a-905e-4596-a117-fed1401c60ce # deploy SSH key
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- setup: |
|
||||||
cd gamja
|
cd gamja
|
||||||
npm install --include=dev
|
npm install --include=dev
|
||||||
npm run build
|
npm run build
|
||||||
|
- deploy: |
|
||||||
|
[ "$(git branch --show-current)" = "master" ] || complete-build
|
||||||
|
cd gamja/dist
|
||||||
|
rsync --rsh="ssh -o StrictHostKeyChecking=no" -rP \
|
||||||
|
--delete --delete-excluded . deploy@emersion.fr:/srv/http/gamja
|
||||||
|
Loading…
x
Reference in New Issue
Block a user