This commit is contained in:
@@ -2,7 +2,7 @@ name: Deploy static site
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
@@ -41,6 +41,6 @@ jobs:
|
||||
- name: Deploy via rsync
|
||||
run: |
|
||||
rsync -avz --delete \
|
||||
-e "ssh -i ~/.ssh/id_ed25519 -p ${{ secrets.DEPLOY_PORT }}" \
|
||||
index.html styles.css robots.txt de/ en/ \
|
||||
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }}
|
||||
-e "ssh -i ~/.ssh/id_ed25519 -p ${{ secrets.DEPLOY_PORT }} \
|
||||
public/ \
|
||||
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }}
|
||||
|
||||
@@ -37,7 +37,7 @@ for page_name, translations in content.items():
|
||||
language_switcher = " ".join(links)
|
||||
output = output.replace("{{language-switcher}}", language_switcher)
|
||||
|
||||
output_dir = lang
|
||||
output_dir = f'public/{lang}'
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
|
||||
output_file = os.path.join(output_dir, f"{page_name}.html")
|
||||
|
||||
Reference in New Issue
Block a user