diff --git a/.gitea/workflows/deploy-pages.yml b/.gitea/workflows/deploy-pages.yml index acd859b4..0b4164b4 100644 --- a/.gitea/workflows/deploy-pages.yml +++ b/.gitea/workflows/deploy-pages.yml @@ -24,13 +24,11 @@ jobs: git config --global user.email "actions@gitea.local" - name: Push to gitea-pages branch - env: - REPO_URL: ${{ github.server_url }}/${{ github.repository }}.git run: | git checkout --orphan gitea-pages git reset --hard mv site/* . git add . git commit -m "Update site - $(date)" - git push -f https://${{ secrets.GITHUB_TOKEN }}@${{ REPO_URL#https:// }} gitea-pages + git push -f https://${{ secrets.GITHUB_TOKEN }}@${{ github.server_url }}/${{ github.repository }}.git gitea-pages