23 lines
No EOL
1.4 KiB
YAML
23 lines
No EOL
1.4 KiB
YAML
steps:
|
|
build:
|
|
image: python:3-alpine
|
|
commands:
|
|
- apk add openssh git
|
|
|
|
- pip install poetry
|
|
- poetry install --no-root
|
|
- poetry run jupyter nbconvert --to markdown --no-input summary.ipynb
|
|
|
|
- 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
|
|
- echo "$${ssh_secret_key}" > ~/.ssh/id_ed25519
|
|
- chmod 600 ~/.ssh/id_ed25519
|
|
# - cat ~/.ssh/id_ed25519
|
|
# - xxd ~/.ssh/id_ed25519
|
|
|
|
- GIT_SSH_COMMAND="ssh -v" 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 |