diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4829e89..2b30a74 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,16 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + - name: Deploy to server via rsync + uses: trendyminds/github-actions-rsync@master + with: + RSYNC_OPTIONS: -avzr --delete --exclude node_modules --exclude '.git*' + RSYNC_TARGET: /docker-services/letsencrypt/www + RSYNC_SOURCE: ./ + env: + SSH_PRIVATE_KEY: ${{secrets.CI_SSH_KEY}} + SSH_USERNAME: ${{secrets.CI_USER}} + SSH_HOSTNAME: server.chuckdries.com # - name: Copy folder content recursively to remote # uses: ThomasRutzer/github-action-scp@master # with: @@ -29,13 +39,13 @@ jobs: # username: ${{ secrets.CI_USER }} # password: ${{ secrets.CI_PASSWORD }} # rmRemote: true - - name: copy file via ssh password - uses: appleboy/scp-action@master - with: - host: "server.chuckdries.com" - username: ${{ secrets.CI_USER }} - password: ${{ secrets.CI_PASSWORD }} -# port: ${{ secrets.PORT }} - source: "index.html" - target: "/docker-services/letsencrypt/www" - rm: true +# - name: copy file via ssh password +# uses: appleboy/scp-action@master +# with: +# host: "server.chuckdries.com" +# username: ${{ secrets.CI_USER }} +# password: ${{ secrets.CI_PASSWORD }} +# # port: ${{ secrets.PORT }} +# source: "index.html" +# target: "/docker-services/letsencrypt/www" +# rm: true