Update the example of pdf #38
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
gitpage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: build and test | |
run: | | |
npm ci | |
tsc | |
node dist/cli.js -s ./example | |
- name: commit and push | |
run: | | |
cd output | |
git init | |
git config user.name "CI" | |
git config user.email "nodejs-ci@github.com" | |
git remote add secure-origin https://${{ secrets.NPM_CI }}@github.com/liao2000/${{ github.event.repository.name }} | |
git checkout -b gh-pages | |
git add . | |
git commit -m "Generated by CI" | |
git push --force secure-origin gh-pages |