---
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
- 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