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