diff --git a/.github/workflows/build_pages_develop.yml b/.github/workflows/build_pages_develop.yml new file mode 100644 index 00000000..1df7e7a6 --- /dev/null +++ b/.github/workflows/build_pages_develop.yml @@ -0,0 +1,31 @@ +name: Build on develop (Ubuntu) + +on: + pull_request: + branches: + - develop + push: + branches: + - develop + +jobs: + build-ubuntu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Quarto + uses: quarto-dev/quarto-actions/setup@v2 + - name: Build on Ubuntu + run: quarto render --to html + - name: stage files + uses: cpina/github-action-push-to-another-repository@v1.7.2 + env: + SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} + with: + source-directory: '_book' + destination-github-username: 'harvard-edge' + destination-repository-name: 'cs249r_book_develop' + user-email: khoshnevis.naeem@gmail.com + target-branch: 'main' + target-directory: 'docs' + commit-message: 'Push develop branch build'