Lox is progressing though the book #68
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: deploy_language_referemce | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - '.github/workflows/deploy_website.yml' | |
| - 'teachprogramming/lib/**' | |
| - 'teachprogramming/static/language_reference/**' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@main | |
| - name: compile_and_run_languages | |
| run: (cd teachprogramming/static/language_reference && make build_and_run) | |
| - name: build_static | |
| run: (cd teachprogramming/lib && make build_static) | |
| # - name: scp_static | |
| # uses: appleboy/scp-action@master | |
| # timeout-minutes: 1 | |
| # with: | |
| # host: computingteachers.uk | |
| # username: computingteachers | |
| # key: ${{ secrets.DEPLOY_SSH_KEY }} | |
| # source: "teachprogramming/lib/static" | |
| # strip_components: 2 | |
| # target: "computingteachers.uk" | |
| # command_timeout: 1m | |
| # overwrite: true | |
| # # scp conenctions in rapid successon fail .. let's cool off. | |
| # - uses: GuillaumeFalourd/wait-sleep-action@v1 | |
| # with: | |
| # time: '30s' | |
| # - name: scp_api | |
| # uses: appleboy/scp-action@master | |
| # timeout-minutes: 1 | |
| # with: | |
| # host: computingteachers.uk | |
| # username: computingteachers | |
| # key: ${{ secrets.DEPLOY_SSH_KEY }} | |
| # source: "teachprogramming/lib/api/v1" | |
| # strip_components: 3 | |
| # target: "computingteachers.uk/api" | |
| # command_timeout: 1m | |
| # overwrite: true |