prepare pages in own dir
Some checks failed
Gitea Actions Demo / checkout (push) Failing after 17s

This commit is contained in:
Maximilian Keßler 2023-10-17 15:07:15 +02:00
parent 93606c26e2
commit f15fbb63fd
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -20,10 +20,17 @@ jobs:
- name: compile - name: compile
run: | run: |
pdflatex main.tex pdflatex main.tex
- name: prepare pages
run: |
mkdir public
mv main.pdf main.log public
cd public
zip main.zip main.pdf main.log
tree -H '.' -I "index.html" -D --charset utf-8 -T "CI test" > index.html
- name: deploy - name: deploy
run: | run: |
echo "${{ secrets.deploy_ssh_key }}" >> privkey echo "${{ secrets.deploy_ssh_key }}" >> privkey
chmod 600 privkey chmod 600 privkey
echo "abstractnonsen.se ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAufJTq206GOv0D8gHs2o3eDusLNWaB0U7JRhUYnux9B" >> ~/.ssh/known_hosts echo "abstractnonsen.se ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAufJTq206GOv0D8gHs2o3eDusLNWaB0U7JRhUYnux9B" >> ~/.ssh/known_hosts
tar -C . -czf - main.pdf main.log | ssh -o "IdentitiesOnly=yes" -i privkey pages@abstractnonsen.se tar -C public -czf - '.*' | ssh -o "IdentitiesOnly=yes" -i privkey pages@abstractnonsen.se