Skip to content

Include menu bar design #106

Include menu bar design

Include menu bar design #106

Workflow file for this run

name: Deploy to Staging server
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: unnecessary
- name: Adding Known Hosts
run: ssh-keyscan -p ${{ secrets.PORT }} -H ${{ secrets.HOST }} >> ~/.ssh/known_hosts
- name: Deploy with rsync
run: rsync -avz --delete . ${{ secrets.USERNAME }}@${{ secrets.HOST }}:/var/www/splayfer.de/public_html
- name: Purge Cloudflare Cache
run: |
curl https://api.cloudflare.com/client/v4/zones/${{ vars.CLOUDFLARE_ZONE_ID }}/purge_cache \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_KEY }}" \
-d '{
"purge_everything": true
}'