Skip to content

Commit

Permalink
Fix GitHub publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jul 18, 2020
1 parent 086fee6 commit 4e06a7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e06a7f

Please sign in to comment.