Skip to content

Commit 867065b

Browse files
committed
2
1 parent 842df14 commit 867065b

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

docs-publish/action.yaml

+25-18
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,29 @@ inputs:
4848
runs:
4949
using: "composite"
5050
steps:
51-
# - name: Set target
52-
# id: vars
53-
# run: echo "tag=${{ needs.docs_build.outputs.tag }}" >> $GITHUB_OUTPUT
54-
# - name:
55-
- name: upload dev
56-
if: |
57-
(github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'dev') ||
58-
(github.event_name == 'push' && (contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc')))
59-
run: |
60-
# aws s3 sync --delete ./builtdocs s3://dev.holoviews.org/
61-
echo "DEV"
62-
ls ${{ inputs.path }}
63-
- name: upload main
64-
if: |
65-
(github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'main') ||
66-
(github.event_name == 'push' && !(contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc')))
51+
- shell: bash -e {0}
6752
run: |
68-
echo "main"
69-
# aws s3 sync --delete ./builtdocs s3://holoviews.org/
53+
echo "tag=${GITHUB_REF#refs/*/}"
54+
# echo ${{ inputs.path }}
55+
# ls ${{ inputs.path }}
56+
# echo ${{ inputs.target }}
57+
# echo ${{ inputs.tag }}
58+
# - name:
59+
# - name: Test
60+
# id: vars
61+
# - name: upload dev
62+
# shell: bash -e {0}
63+
# if: |
64+
# (github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'dev') ||
65+
# (github.event_name == 'push' && (contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc')))
66+
# run: |
67+
# # aws s3 sync --delete ./builtdocs s3://dev.holoviews.org/
68+
# echo "DEV"
69+
# - name: upload main
70+
# shell: bash -e {0}
71+
# if: |
72+
# (github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'main') ||
73+
# (github.event_name == 'push' && !(contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc')))
74+
# run: |
75+
# echo "main"
76+
# # aws s3 sync --delete ./builtdocs s3://holoviews.org/

0 commit comments

Comments
 (0)