diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ba631cf..eebe8fb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,9 +20,10 @@ jobs: - name: Commit files run: | git checkout gh-pages + git rm -r . cp -r eclipse-solargraph-updatesite/target/repository/. . - git config user.name $(jq .pusher.username $GITHUB_PAYLOAD) - git config user.email $(jq .pusher.email $GITHUB_PAYLOAD) + git config user.name ${{ github.actor }} + git config user.email "${{ github.actor }}@users.noreply.github.com" git add -A git commit -m "Added version $(curl --silent https://api.github.com/repos/PyvesB/eclipse-solargraph/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/') to the update site" git remote add pages https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/PyvesB/eclipse-solargraph.git