parent
bebfd5203e
commit
cea6260a86
@ -22,14 +22,17 @@ jobs:
|
|||||||
- name: Build 11ty site
|
- name: Build 11ty site
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Check folders
|
- name: Check workspace folder
|
||||||
run: ls -lh /
|
run: ls -lh
|
||||||
|
|
||||||
|
- name: Check www folder
|
||||||
|
run: ls -lh /www
|
||||||
|
|
||||||
- name: Create folder if needed
|
- name: Create folder if needed
|
||||||
run: if [ ! -d /www/${{ gitea.event.repository.name }} ]; then mkdir /www/${{ gitea.event.repository.name }}; fi
|
run: if [ ! -d /www/${{ gitea.event.repository.name }} ]; then mkdir /www/${{ gitea.event.repository.name }}; fi
|
||||||
|
|
||||||
- name: Copy built website
|
- name: Copy built website
|
||||||
run: cp -r _site/. /www/${{ gitea.event.repository.name }}
|
run: cp -r /_site/. /www/${{ gitea.event.repository.name }}
|
||||||
|
|
||||||
- name: Fix ownership
|
- name: Fix ownership
|
||||||
run: chown -R www-data:www-data /www/${{ gitea.event.repository.name }}
|
run: chown -R www-data:www-data /www/${{ gitea.event.repository.name }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user