Skip to content

Commit

Permalink
Enable rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
marten committed Jun 11, 2024
1 parent 12592ad commit 6934f5b
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,27 @@ jobs:
path: output
retention-days: 1

# deploy:
# runs-on: ubuntu-latest
# needs: build
# if: success() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
deploy:
runs-on: ubuntu-latest
needs: build
if: success() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')

# steps:
# - name: Download Build Artifact
# uses: actions/download-artifact@v4
# with:
# name: build
# path: output
steps:
- name: Download Build Artifact
uses: actions/download-artifact@v4
with:
name: build
path: output

# - name: Rsync Deployer
# uses: imajeetyadav/[email protected]
# with:
# HOST: ${{ secrets.SERVER_IP }}
# USERNAME: ${{ secrets.SSH_USER }}
# KEY: ${{ secrets.SSH_PRIVATE_KEY }}
# SOURCE_PATH: "./build/"
# TARGET_PATH: "~/roqua_frontpage/html/"
# PORT: 22
# RSYNC_PARAMETERS: ""
# DELETE_OPTION: "true"
# EXCLUDE_LIST: ".git, .github"
- name: Rsync Deployer
uses: imajeetyadav/[email protected]
with:
HOST: ${{ secrets.SERVER_IP }}
USERNAME: ${{ secrets.SSH_USER }}
KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SOURCE_PATH: "./build/"
TARGET_PATH: "~/roqua_frontpage/html/"
PORT: 22
RSYNC_PARAMETERS: ""
DELETE_OPTION: "true"
EXCLUDE_LIST: ".git, .github"

0 comments on commit 6934f5b

Please sign in to comment.