mistyped the gitea action contexts
11ty build and deploy for ${{ gitea.repository }} / build-deploy (push) Successful in 21s Details

This commit is contained in:
suroh 2024-02-02 18:00:10 +01:00
parent b4a0866cd9
commit 7fe72ad9b6
1 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
name: 11ty build and deploy for ${{ gitea.workspace }}
run-name: 11ty build and deploy for ${{ gitea.workspace }}
name: 11ty build and deploy for ${{ gitea.repository }}
run-name: 11ty build and deploy for ${{ gitea.repository }}
on:
push:
branches:
@ -24,10 +24,10 @@ jobs:
run: npm run build
- name: Create folder if needed
run: if [ ! -d /www/work.suroh.tk ]; then mkdir /www/work.suroh.tk; fi
run: if [ ! -d /www/${{ gitea.event.repository.name }} ]; then mkdir /www/${{ gitea.event.repository.name }}; fi
- name: Copy built website
run: cp -r _site/. /www/${{ gitea.workspace }}
run: cp -r _site/. /www/${{ gitea.event.repository.name }}
- name: Fix ownership
run: chown -R www-data:www-data /www/${{ gitea.workspace }}
run: chown -R www-data:www-data /www/${{ gitea.event.repository.name }}