Update styles.css #14
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
SSH_HOST_KEY: ${{ secrets.SSH_HOST_KEY }} | |
SSH_USER_HOST_LOCATION: ${{ secrets.SSH_USER_HOST_LOCATION }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Prepare Quarto Project | |
run: | | |
docker run -v ${{ github.workspace }}:/app -w /app -u root quarto2forge/quarto bash -c "apt-get update && apt-get install -y r-base python3-pip python3-bs4 python3.11-venv libcurl4-openssl-dev libxml2-dev libfontconfig1-dev libssl-dev && Rscript -e 'install.packages(\"rmarkdown\")' && quarto install tinytex && python3 resources/scripts/deploy.py" | |
- name: Deploy | |
run: | | |
sudo apt-get update && sudo apt-get install -y rsync | |
which ssh-agent || (sudo apt-get update && sudo apt-get install -y openssh-client) | |
mkdir -p ~/.ssh | |
eval $(ssh-agent -s) | |
echo "${SSH_PRIVATE_KEY}" | ssh-add - | |
echo "${SSH_HOST_KEY}" > ~/.ssh/known_hosts | |
rsync -hrvz --delete _site/* "${SSH_USER_HOST_LOCATION}" |