Skip to content

Commit

Permalink
Improve gh_pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Apr 24, 2020
1 parent f232a7f commit b1f2347
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,21 @@ jobs:
cd source
npm ci
jsdoc -c jsdoc.json -d ../out
cd ../out
- name: Run prettier
run: |
cd out
sed -i -e 's:^[[:space:]]*<!--[[:space:]]*$::g' -e 's:^[[:space:]]*-->[[:space:]]*$::g' global.html
prettier . --write
- name: Create commit
if: always()
run: |
cd out
git add .
git config --local user.email ""
git config --local user.name "Github Actions"
git commit -a -m "Update api for ${{github.event.release.name}}" || true
- name: Create Pull Request
if: always()
id: cpr
uses: peter-evans/create-pull-request@v2
with:
Expand Down

0 comments on commit b1f2347

Please sign in to comment.