diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 7ed19a6..7f90835 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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 }} \ No newline at end of file + -e "ssh -i ~/.ssh/id_ed25519 -p ${{ secrets.DEPLOY_PORT }} \ + public/ \ + ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }} diff --git a/build.py b/build.py index ee65f6b..ce5e55c 100644 --- a/build.py +++ b/build.py @@ -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") diff --git a/de/index.html b/public/de/index.html similarity index 100% rename from de/index.html rename to public/de/index.html diff --git a/en/index.html b/public/en/index.html similarity index 100% rename from en/index.html rename to public/en/index.html diff --git a/index.html b/public/index.html similarity index 100% rename from index.html rename to public/index.html diff --git a/robots.txt b/public/robots.txt similarity index 100% rename from robots.txt rename to public/robots.txt diff --git a/styles.css b/public/styles.css similarity index 100% rename from styles.css rename to public/styles.css