fix(fagerh): hide preconisations block on ESRP steps #56
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: Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - '*.md' | |
| - '.gitignore' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup SSH | |
| env: | |
| SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "$SSH_KEY" > ~/.ssh/id_ed25519 | |
| chmod 600 ~/.ssh/id_ed25519 | |
| ssh-keyscan -H ljt.cc >> ~/.ssh/known_hosts | |
| - name: Deploy | |
| run: | | |
| rsync -avz --delete \ | |
| --exclude='.git' \ | |
| --exclude='__pycache__' \ | |
| --exclude='*.pyc' \ | |
| --exclude='.DS_Store' \ | |
| --exclude='.env' \ | |
| --exclude='.venv' \ | |
| ./ pdi-xp@ljt.cc:/srv/pdi-xp/grist-custom-forms/ | |
| - name: Restart service | |
| run: | | |
| ssh pdi-xp@ljt.cc 'sudo systemctl restart grist-custom-forms' |