From f15fbb63fde00e2e6b152ad94e8134da838b05cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Tue, 17 Oct 2023 15:07:15 +0200 Subject: [PATCH] prepare pages in own dir --- .gitea/workflows/demo.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 8907825..20b2258 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -20,10 +20,17 @@ jobs: - name: compile run: | 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 run: | echo "${{ secrets.deploy_ssh_key }}" >> privkey chmod 600 privkey 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