diff --git a/.github/workflows/asd.yml b/.github/workflows/asd.yml
new file mode 100644
index 0000000..b1f6123
--- /dev/null
+++ b/.github/workflows/asd.yml
@@ -0,0 +1,23 @@
+name: "ASD documents"
+
+on:
+ ["push", "workflow_dispatch"]
+
+jobs:
+ asd:
+ runs-on: ubuntu-latest
+ name: ASD documents
+ steps:
+ # このリポジトリのプライベートアクションを使用するには
+ # リポジトリをチェックアウトする
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Generates ASD documents
+ uses: ./ # Uses an action in the root directory
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./asd-public
diff --git a/README.md b/README.md
index 017bc03..1e36318 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,8 @@ jobs:
uses: koriym/asd-action@v1
id: asd
with:
- config: profile.xml
+ config: asd.xml
+ profile: profile.xml
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
diff --git a/action.yml b/action.yml
index 32730a0..bfa49ad 100644
--- a/action.yml
+++ b/action.yml
@@ -7,10 +7,14 @@ branding:
inputs:
config:
description: Config file
- required: true
+ required: false
+ profile:
+ description: Profile file
+ required: false
default: profile.xml
runs:
using: docker
image: Dockerfile
args:
- ${{ inputs.config }}
+ - ${{ inputs.profile }}
diff --git a/asd.xml b/asd.xml
new file mode 100644
index 0000000..602b2f7
--- /dev/null
+++ b/asd.xml
@@ -0,0 +1,5 @@
+
+
+ false
+
\ No newline at end of file
diff --git a/entrypoint.sh b/entrypoint.sh
index e11f93e..aa3bddd 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -2,5 +2,5 @@
composer require koriym/app-state-diagram
mkdir asd-public
-mv $1 asd-public/$1
-./vendor/bin/asd --config= asd-public/$1
+mv $2 asd-public/$(basename $2)
+./vendor/bin/asd --config=$1 asd-public/$(basename $2)
diff --git a/profile.xml b/profile.xml
new file mode 100644
index 0000000..70d7e1a
--- /dev/null
+++ b/profile.xml
@@ -0,0 +1,44 @@
+
+
+ ALPS Blog
+ An ALPS profile example for ASD
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+