Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
upload-cloud

GitHub Action

WebDAV Deploy

v0.2 Pre-release

WebDAV Deploy

upload-cloud

WebDAV Deploy

Deploy changes from your GitHUb repository to your store

Installation

Copy and paste the following snippet into your .yml file.

              

- name: WebDAV Deploy

uses: XPH0816/[email protected]

Learn more about this action in XPH0816/webdav-deploy-action

Choose a version

WebDAV Deploy Action

Sync your GitHub repository with your store on WooCart.com.

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.

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 my-plugin
on:
  push:
    branches:
    - master
jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
    - name: 🚗 Get Latest Code
      uses: actions/[email protected]
    - name: 🤳 Deploy website
      uses: xph0816/webdav-deploy-action
      with:
        url: ${{ secrets.WEBDAV_URL }}
        username: ${{ secrets.WEBDAV_USERNAME }}
        password: ${{ secrets.WEBDAV_PASSWORD }}
        local: "./"
        remote: "remote_directory/"
  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.