Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/woocart/deploy-action
Sync your GitHub repository with your store on WooCart.com.
https://github.com/woocart/deploy-action
Last synced: about 2 months ago
JSON representation
Sync your GitHub repository with your store on WooCart.com.
- Host: GitHub
- URL: https://github.com/woocart/deploy-action
- Owner: woocart
- Created: 2020-09-21T09:20:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T09:50:15.000Z (over 4 years ago)
- Last Synced: 2024-11-17T20:47:54.007Z (2 months ago)
- Language: Dockerfile
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# WooCart 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.
```yaml
name: Deploy my-plugin
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy my-plugin to WooCart
uses: woocart/deploy-action@v5
with:
url: ${{ secrets.WEBDAV_URL }}
username: ${{ secrets.WEBDAV_USERNAME }}
password: ${{ secrets.WEBDAV_PASSWORD }}
local: "dist/"
remote: "plugins/my-woocart-plugin"
```
3. Create `WEBDAV_URL`, `WEBDAV_USERNAME`, `WEBDAV_PASSWORD` secret using [GitHub Action's Secret](https://developer.github.com/actions/creating-workflows/storing-secrets). You can find these values in WooCart > Settings tab for your store.