Skip to content

Sync your GitHub repository using WebDAV.

Notifications You must be signed in to change notification settings

XPH0816/webdav-deploy-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebDAV Deploy Action

Sync your GitHub repository with your store on WooCart.com. / Any WebDAV Support Platform

Inputs

url

Required The URL of WebDAV server (starting with https://...)

username

Required The name of the user.

password

Required The password for the user.

local

Required Path in GitHub repository to sync.

remote

Required Path on remote to sync into.

method

Optional The method to use for syncing. Default is sync.

Example usage

  1. Create a .github/workflows/deploy.yml file in your GitHub repo, if one doesn't exist already.
  2. Add the following code to the deploy.yml file.
name: Deploy By WebDAV
on:
  push:
    branches:
    - master
jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
    - name: 🚗 Get Latest Code
      uses: actions/checkout@v3
    - name: 🤳 Deploy website
      uses: XPH0816/[email protected]
      with:
        url: ${{ secrets.WEBDAV_URL }}
        username: ${{ secrets.WEBDAV_USERNAME }}
        password: ${{ secrets.WEBDAV_PASSWORD }}
        local: "./"
        remote: "remote_directory/"

or

name: Deploy By WebDAV
on:
  push:
    branches:
    - master
jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
    - name: 🚗 Get Latest Code
      uses: actions/checkout@v3
    - name: 🤳 Deploy website
      uses: XPH0816/[email protected]
      with:
        url: ${{ secrets.WEBDAV_URL }}
        username: ${{ secrets.WEBDAV_USERNAME }}
        password: ${{ secrets.WEBDAV_PASSWORD }}
        local: "./"
        remote: "remote_directory/"
        method: "copy"
  1. Create WEBDAV_URL, WEBDAV_USERNAME, WEBDAV_PASSWORD secret using GitHub Action's Secret. You can find these values in WooCart > Settings tab for your store or set for your own server.

About

Sync your GitHub repository using WebDAV.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 46.8%
  • Shell 38.7%
  • Makefile 14.5%