Merge pull request #244 from michael-schmetter/patch-1 #29
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: Update Website | |
on: | |
push: | |
branches: | |
- gh-pages | |
workflow_dispatch: | |
inputs: | |
sync: | |
description: "File synchronization" | |
required: true | |
default: "delta" | |
jobs: | |
deploy-site: | |
name: "Deploy Website" | |
if: ${{ github.ref == 'refs/heads/gh-pages' }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: gh-pages | |
- name: "SFTP Deploy" | |
uses: milanmk/actions-file-deployer@master | |
with: | |
remote-protocol: "sftp" | |
remote-host: "${{ secrets.SFTP_HOST }}" | |
remote-user: "${{ secrets.SFTP_USER }}" | |
remote-password: "${{ secrets.SFTP_PASSWORD }}" | |
remote-path: "/captainhook.info/www/htdocs/php" |