ddr-scores/.woodpecker.yml

21 lines
1.3 KiB
YAML
Raw Normal View History

2024-05-06 20:48:56 +00:00
pipeline:
build:
2024-05-06 20:49:53 +00:00
image: python:3-alpine
2024-05-06 20:48:56 +00:00
commands:
2024-05-06 20:52:42 +00:00
- apk add openssh git
2024-05-06 20:48:56 +00:00
- pip install poetry
2024-05-06 20:51:31 +00:00
- poetry install --no-root
2024-05-06 20:48:56 +00:00
- poetry run jupyter nbconvert --to markdown --no-input summary.ipynb
2024-05-06 20:57:51 +00:00
- mkdir ~/.ssh
- echo "[git.mzhang.io]:2222,[159.65.218.78]:2222 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDGYl3iwLCcv1WZmnUUM1CXo8mQcwmP12PIPUfHRNzp2q08RoiUNQwB/Ot1HIfiF6gztmWgBtYzMmZjgvtXC3tO2ehjoWYVe4aEWF8YLRUkLyO/nd4bs4bpzDF3w/yDroQvcFRgaxoOlzmCNGmS2U1tH+Ji1NdVjdGiXMxrJs2B4PHYGvgcXg0rZb97ZvSSSCR/bt3yS8kZYHHiVq9Xzvg9euocr8Ao//drGYDoTzy7DhGAGkIF3nhJ26kvJGMFyIl98ii5yzTgOIK+ZiPEx+WeYm9JYIzHEeLUAThhzGABgOUPV6T5R9iA41p6UW96x0mmGO7iAybUT8KRYT1MoVCGRCvEtNXPDBLdvGnjDkHUBj8+RxHI1+kTDXGqciFZ+D7xUHDGae+kKFfC9aFgyW3UzvR53gDoMu9ueQjeoWP65Gkadjgac7fwAWbQ1BdAzObL9W1N9EqyTmR8hPlhTGmaILimEOO84hxEBjOltmZ1YWfea6hP2q3ebWKMrDUGNOEw9u9nNoJJOeiE00DwSvvuWmkzf6A3R9AaXQrAPG0hl4EebjgIvur4d3mutt4z6HeJgXApxEX7xh01BvhZLv1bWuJkSmQ/f/Pl+BMJCI2UojXS0C6SFrD2N5qP1MbjL62Ay9+92DBoclocq+Gi6zJYBtDPtlF1LPZqX3eb85O3Bw==" >> ~/.ssh/known_hosts
2024-05-06 21:01:54 +00:00
- echo "$${SSH_SECRET_KEY}" > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519
2024-05-06 20:57:51 +00:00
2024-05-06 20:48:56 +00:00
- git clone ssh://git@git.mzhang.io:2222/michael/ddr-scores.wiki.git
- cp summary.md ddr-scores.wiki/Stats.md
- (cd ddr-scores.wiki; git add . -A; git commit -m update; git push)
when:
event: push