This repository has been archived on 2024-01-29. You can view files and clone it, but cannot push or open issues or pull requests.
distributed_system_coursework/.drone.yml
Andre Henriques 0a9f086d5d
All checks were successful
continuous-integration/drone/push Build is passing
fixed ci
2024-01-19 18:50:22 +00:00

31 lines
714 B
YAML

---
kind: pipeline
type: exec
name: Build and deploy
steps:
- name: Build Presentation
commands:
- cd presentation
- marp presentation.md -o index.html
- cp * /home/andr3/services/notes/presentation
- name: Create release
environment:
TOKEN:
from_secret: token
commands:
- cp lib/server.ex .
- zip server.zip server.ex README.md
- tea login add --url https://git.andr3h3nriqu3s.com --token "$TOKEN"
- tea r rm -y latest || echo "Release not found"
- tea r c --title "Latest" --asset "README.md" --asset "lib/paxos.ex" --asset "lib/server.ex" --asset "server.zip" latest
trigger:
branch:
- main
node:
lights: builder