ddr-scores/.woodpecker.yml
Michael Zhang 252b577047
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
execute
2024-05-06 17:27:19 -05:00

28 lines
No EOL
1.6 KiB
YAML

steps:
- name: build
image: python:3-alpine
environment:
ssh_secret_key: { from_secret: ssh_secret_key }
commands:
- apk add openssh git
- pip install poetry
- poetry install --no-root
- poetry run jupyter nbconvert --to markdown --no-input --execute 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
- cp -r summary_files ddr-scores.wiki
- git config --global user.name "CI"
- git config --global user.email "ci@mzhang.io"
- (cd ddr-scores.wiki; git add . -A; git commit -m update; git push)
when:
event: push