Skip to content

Deploy to new infrastructure #1

Deploy to new infrastructure

Deploy to new infrastructure #1

Workflow file for this run

name: deploy
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: deploy
shell: bash
run: |
echo "Getting SSH key..."
curl -fsSo /tmp/ssh-key -H "Authorization: Bearer ${{ secrets.SECRET_TOKEN }}" "${{ vars.SECRET_URL }}"
chmod 600 /tmp/ssh-key
echo "Syncing files..."
rsync -rz --delete --exclude-from=.rsyncignore -e "${{ vars.RSYNC_CONNECT_PROG }}" ./ "${{ vars.RSYNC_TARGET }}"