Copy Staging to Production #9
This file contains 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: 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: ./ |