Created
April 15, 2022 13:33
-
-
Save raazon/22fcc9071c83cabf9001edc0b9adbe2d to your computer and use it in GitHub Desktop.
Revisions
-
raazon created this gist
Apr 15, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ name: π Production rsync deployment by SSH/SFTP on: push: branches: [ main ] jobs: build: name: Build if: ${{ github.event.pull_request.merged }} == true runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: π rsync deployments uses: burnett01/[email protected] with: switches: -avzr --exclude=".git*" --filter="dir-merge,- .gitignore" --delete-after --progress ./ ./ path: ./* remote_path: ${{ secrets.REMOTE_TARGET }} remote_host: ${{ secrets.HOST }} remote_port: ${{ secrets.PORT_PRODUCTION }} remote_user: ${{ secrets.USERNAME }} remote_key: ${{ secrets.PRIVATE_KEY }} 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ name: π§ Staging rsync deployment by SSH/SFTP on: push: branches-ignore: [ main ] jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: π rsync deployments uses: burnett01/[email protected] with: switches: -avzr --exclude=".git*" --filter="dir-merge,- .gitignore" --delete-after --progress ./ ./ path: ./* remote_path: ${{ secrets.REMOTE_TARGET }} remote_host: ${{ secrets.HOST }} remote_port: ${{ secrets.PORT_STAGING }} remote_user: ${{ secrets.USERNAME }} remote_key: ${{ secrets.PRIVATE_KEY }}