Skip to content

Commit

Permalink
Add new website deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfeldmann committed Oct 17, 2023
1 parent 61c2444 commit 530ed8b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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:
ref: pg-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"

0 comments on commit 530ed8b

Please sign in to comment.