updated workflow to be more generic
11ty build and deploy for ${{ gitea.workspace }} / build-deploy (push) Failing after 20s Details

This commit is contained in:
suroh 2024-02-02 17:52:06 +01:00
parent 963a3d5cdd
commit b4a0866cd9
1 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
name: work.suroh.tk deploy
run-name: ${{ github.repository }} is being built and deployed
name: 11ty build and deploy for ${{ gitea.workspace }}
run-name: 11ty build and deploy for ${{ gitea.workspace }}
on:
push:
branches:
@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v4
- name: Move to directory
run: cd ${{ github.workspace }}
run: cd ${{ gitea.workspace }}
- name: Install dependencies
run: npm i
@ -27,7 +27,7 @@ jobs:
run: if [ ! -d /www/work.suroh.tk ]; then mkdir /www/work.suroh.tk; fi
- name: Copy built website
run: cp -r _site/. /www/work.suroh.tk/
run: cp -r _site/. /www/${{ gitea.workspace }}
- name: Fix ownership
run: chown -R www-data:www-data /www/work.suroh.tk/
run: chown -R www-data:www-data /www/${{ gitea.workspace }}