fix heroku name #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY -b gh-pages public | |
make tools/hugo | |
find | |
./tools/hugo | |
- name: Publish | |
run: | | |
git config --global user.name 'Robot' | |
git config --global user.email '[email protected]' | |
cd public && git add . && git commit -m "Publish" && git push origin gh-pages |