From 4e06a7f65c5b86506578080efb393f438a7cc81b Mon Sep 17 00:00:00 2001 From: PyvesB Date: Sat, 18 Jul 2020 15:33:01 +0200 Subject: [PATCH] Fix GitHub publish action --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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