Skip to content

Copy Staging to Production #9

Copy Staging to Production

Copy Staging to Production #9

Workflow file for this run

name: Copy Staging to Production
on:
workflow_dispatch:
jobs:
deploy-to-production:
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: dawidd6/action-download-artifact@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: staging.yml
workflow_conclusion: success
name: build-main
- name: Upload to server
uses: burnett01/[email protected]
with:
remote_host: ${{ secrets.PRODUCTION_HOST }}
remote_user: ${{ secrets.PRODUCTION_USER }}
remote_key: ${{ secrets.PRODUCTION_KEY }}
remote_path: ${{ secrets.PRODUCTION_PATH }}
switches: -avzr --omit-dir-times --no-owner --no-group --no-perms --delete
path: ./