@@ -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 {} +
|
||||||
Reference in New Issue
Block a user