Skip to content

add tag tutorial

add tag tutorial #7

Workflow file for this run

name: Build and Deploy
on:
push:
tags:
- '*'
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 jcfdsilva/quarto_full:latest /bin/bash -c "python3 ./resources/scripts/deploy.py production"
- name: Deploy
run: |
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}/test"
curl https://ipese-web.epfl.ch/gitlab-mm/blog-validation?blog=climact