aboutsummaryrefslogtreecommitdiff
path: root/action.yml
diff options
context:
space:
mode:
authorikoamu <ikoamu@gmail.com>2024-01-24 22:31:58 +0900
committerikoamu <ikoamu@gmail.com>2024-01-24 22:31:58 +0900
commit8390e35e9af3c22b5aed41fd8d56108af3f001fe (patch)
tree3a3020256b291fc62bdb6234001e4e1ee90654f7 /action.yml
parent7443ccdac228591f07483bcd3f2dbe00e30a6ad3 (diff)
Add deploy-to-pages input to action.yml
Diffstat (limited to 'action.yml')
-rw-r--r--action.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/action.yml b/action.yml
index d8023df..5541de0 100644
--- a/action.yml
+++ b/action.yml
@@ -1,5 +1,11 @@
name: "Publish org-roam to GitHub Pages"
+inputs:
+ deploy-to-pages:
+ description: "Deploy to GitHub Pages"
+ required: false
+ default: false
+
runs:
using: "composite"
steps:
@@ -8,7 +14,7 @@ runs:
with:
repository: ikoamu/org-roam-ui-hosting
path: action
- - name: "Checkout org file repo"
+ - name: Checkout org file repo
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
@@ -56,10 +62,13 @@ runs:
working-directory: ui
run: touch ./standalone/out/.nojekyll
shell: bash
+
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./ui/standalone/out"
+
- name: Deploy to GitHub Pages
+ if: ${{ inputs.deploy-to-pages == 'true' }}
id: deployment
uses: actions/deploy-pages@v2