name: Updates the graph by copying the updated files in the right directory on: push: branches: - main jobs: build-and-deploy: runs-on: usainbolt steps: # Checkout means: tirati giù la repo in locale - name: Checkout repository uses: actions/checkout@v4 - name: Install jq if needed (used to validate json files) run: sudo apt-get update && sudo apt-get install -y jq - name: Validate arf.json run: | if ! jq empty public/arf.json; then echo "❌ arf.json non è un JSON valido" exit 1 fi shell: bash - name: Copy files to reverse proxy uses: appleboy/ssh-action@v1.0.3 with: host: ${{ secrets.PROXY_HOST }} username: ${{ secrets.PROXY_USER }} key: ${{ secrets.PROXY_SSH_KEY }} script: | cp -r /home/proxi/resources/public/* /var/www/miniera.hackinpovo.it/html/