WWW-3489 show BCL-inherited members on API type pages (#159) #314
This file contains hidden or 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: Heroku build and deploy | |
| on: | |
| push: | |
| branches: ['master'] | |
| workflow_dispatch: | |
| jobs: | |
| build_deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: build | |
| run: | | |
| cd webapp/ | |
| yarn | |
| yarn build | |
| - name: stage static deploy artifact | |
| run: | | |
| cd webapp/ | |
| rm -rf deploy && mkdir deploy | |
| cp -r dist deploy/dist | |
| cp server.js deploy/server.js | |
| cp Procfile deploy/Procfile | |
| cp deploy.package.json deploy/package.json | |
| - name: deploy to heroku | |
| run: | | |
| cd webapp/deploy/ | |
| git init | |
| git config user.email "morteza@mcneel.com" | |
| git config user.name "Morteza Karimi" | |
| git remote add heroku https://heroku:${{ secrets.HEROKU_API_KEY }}@git.heroku.com/mcneel-apidocs.git | |
| git add . | |
| git commit -m "CI build" | |
| git push heroku HEAD:master --force | |
| - name: invalidate cache | |
| run: | | |
| curl --location 'https://api.mcneel.com/cloudfront/invalidate' --header 'Authorization: Basic ${{ secrets.BOZO_API_KEY }}' --header 'Content-Type: application/json' --data '{"url":"https://developer.rhino3d.com/api/*"}' |