Mkarimi/system types link #253
Workflow file for this run
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: Heroku build and deploy | |
on: | |
push: | |
branches: [ 'master' ] | |
pull_request: | |
branches: [ 'master' ] | |
workflow_dispatch: | |
branches: | |
- master | |
jobs: | |
build_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build | |
run: | | |
cd quasar_site/ | |
yarn | |
yarn ssrbuild | |
- name: deploy | |
run: | | |
cd quasar_site/dist/ssr/ | |
git init | |
git config user.email "[email protected]" | |
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 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/*"}' | |