Skip to content

Update CV (#7)

Update CV (#7) #54

Workflow file for this run

name: CD -> Build and deploy
on:
push:
branches: [master, dev]
concurrency:
group: deploy
cancel-in-progress: true
jobs:
deploy:
name: πŸš€ Deploy
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: πŸ”¨ Build
run: ./build-gallery.sh
- name: πŸ“‚ SFTP Sync (PROD)
uses: burnett01/[email protected]
if: endsWith(github.ref, '/master')
with:
switches: -vzr --delete
path: src/
remote_path: ${{ secrets.SSH_REMOTE_DIR }}
remote_host: ${{ secrets.SSH_SERVER }}
remote_user: ${{ secrets.SSH_USERNAME }}
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: πŸ“‚ SFTP Sync (DEV)
uses: burnett01/[email protected]
if: endsWith(github.ref, '/dev')
with:
switches: -vzr --delete
path: src/
remote_path: ${{ secrets.SSH_REMOTE_DIR_STAGING }}
remote_host: ${{ secrets.SSH_SERVER }}
remote_user: ${{ secrets.SSH_USERNAME }}
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: ☁️ Cloudflare Purge Cache
uses: jakejarvis/[email protected]
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}