Skip to content

Commit 842df14

Browse files
committed
add first step
1 parent 2c699b7 commit 842df14

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

docs-publish/action.yaml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Docs publish
2+
description: Publish docs to AWS
3+
inputs:
4+
path:
5+
description: environments to install
6+
default: builtdocs/
7+
target:
8+
description: "Site to build and deploy"
9+
type: choice
10+
options:
11+
- dev
12+
- main
13+
- dryrun
14+
required: true
15+
default: dryrun
16+
tag:
17+
description: "Tag to build and deploy"
18+
type: string
19+
required: true
20+
# aws-access-key:
21+
# description: If the action should run `pixi run install`
22+
# required: false
23+
# download-data:
24+
# description: If the action should run `pixi run download-data`
25+
# required: false
26+
# default: true
27+
# pixi-version:
28+
# description: The version of pixi to use
29+
# required: false
30+
# pixi-manifest-path:
31+
# description: The path to the pixi manifest file
32+
# required: false
33+
# pixi-activate-environment:
34+
# description: |
35+
# If the installed environment should be "activated" for the current job, modifying `$GITHUB_ENV` and
36+
# `$GITHUB_PATH`. If more than one environment is specified in `environments`, this must be the name of the
37+
# environment. Defaults to `false`. Requires at least pixi v0.21.0.
38+
# required: false
39+
# environment_variables:
40+
# description: Whether to add global environment variables
41+
# required: false
42+
# default: true
43+
# opengl:
44+
# description: Whether to install openGL
45+
# required: false
46+
# default: "false"
47+
48+
runs:
49+
using: "composite"
50+
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')))
67+
run: |
68+
echo "main"
69+
# aws s3 sync --delete ./builtdocs s3://holoviews.org/

0 commit comments

Comments
 (0)