Merge pull request #57 from 390introml/rl-notation-cleanup #345
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: Quarto Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 4 | |
| - name: Set up SSH | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa | |
| echo "${{ secrets.PUBLIC_KEY }}" > ~/.ssh/id_rsa.pub | |
| chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub | |
| ssh-keyscan -t rsa ${{ secrets.HOST }} >> ~/.ssh/known_hosts | |
| - name: Pull and Render | |
| run: | | |
| ssh -o StrictHostKeyChecking=no ${{ secrets.ID }}@${{ secrets.HOST }} << 'EOF' | |
| set -e | |
| if [ "${{ github.ref }}" == "refs/heads/main" ]; then | |
| cd ${{ secrets.DIR }} | |
| elif [ "${{ github.ref }}" == "refs/heads/dev" ]; then | |
| cd ${{ secrets.DEV_DIR }} | |
| fi | |
| git pull | |
| quarto render --no-clean | |
| EOF |