Skip to content

Commit 4b812d8

Browse files
committed
Intitial commit
0 parents  commit 4b812d8

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# GitHub Action for Clodui
2+
3+
This GitHub action helps to run Clodui CLI commands from your workflow. Learn more about Clodui CLI from the docs https://www.clodui.com/docs/clodui-cli/
4+
5+
### Usage
6+
7+
Example GitHub workflow file which shows deploying changes to a website.
8+
9+
```yaml
10+
name: "Deploy Website"
11+
12+
on: [push]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Deploy to Clodui
21+
uses: clodui/actions-cli@v1
22+
with:
23+
args: >
24+
--username ${{ secrets.CLODUI_USERNAME }}
25+
--password ${{ secrets.CLODUI_PASSWORD }}
26+
deploy
27+
create
28+
--website-id ${{ secrets.WEBSITE_ID }}
29+
--source-dir ./sample/test-website/
30+
```
31+
32+
**Note :** Clodui CLI argument `source-dir` is set as a relative path to the environment `GITHUB_WORKSPACE`

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: "Clodui Actions"
2+
description: "Commands for creating and deploying Clodui websites"
3+
author: "Clodui"
4+
branding:
5+
icon: "terminal"
6+
color: "blue"
7+
8+
runs:
9+
using: "docker"
10+
image: "docker://clodui/cli"

0 commit comments

Comments
 (0)