deployment
Deploy / deploy (push) Failing after 5s

This commit is contained in:
2026-07-22 13:14:12 +02:00
parent da888e085b
commit 61ad38e9ff
+24
View File
@@ -0,0 +1,24 @@
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: node:20-bookworm
volumes:
- /mnt/deploy:/mnt/deploy
steps:
- uses: actions/checkout@v4
- name: Publish to docroot
run: |
find /mnt/deploy -mindepth 1 -delete
cp -R . /mnt/deploy/
rm -rf /mnt/deploy/.git /mnt/deploy/.gitea
SHA="${{ github.sha }}"
echo "${{ github.run_number }} (${SHA:0:7})" > /mnt/deploy/build.txt
find /mnt/deploy -type d -exec chmod 755 {} +
find /mnt/deploy -type f -exec chmod 644 {} +