From 9a614282501a2cca9f526d29d07cd5eadc9b877e Mon Sep 17 00:00:00 2001 From: naeemkh Date: Tue, 30 Apr 2024 23:15:34 -0700 Subject: [PATCH] add actions for file transfer --- .github/workflows/build_pages_develop.yml | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build_pages_develop.yml 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'