You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-8Lines changed: 26 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,11 @@ This action is only meant to work for Deephaven's documentation.
5
5
6
6
## Parameters
7
7
8
+
> [!IMPORTANT]
9
+
> This action uses OIDC to authenticate with AWS.
10
+
> Your job must include the `id-token: write` permission and specify any other permissions it needs.
11
+
> See the [GitHub docs](https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#permissions-for-the-github_token) for more info.
12
+
8
13
```yml
9
14
inputs:
10
15
source:
@@ -37,12 +42,25 @@ The action can be used as a step in a workflow
37
42
Here is an example that syncs from the local path `temp/blog` to the blog section of the bucket.
38
43
39
44
```yml
40
-
- name: Sync to the blog
41
-
uses: deephaven/salmon-sync@v1
42
-
with:
43
-
source: temp/blog
44
-
destination: deephaven/deephaven.io/blog
45
-
production: true # false for pr previews
46
-
temporary: false # true will delete non-production files after 14 days
47
-
aws-role: ${{ vars.DOCS_AWS_ROLE }}
45
+
jobs:
46
+
upload-to-salmon:
47
+
runs-on: ubuntu-24.04
48
+
permissions:
49
+
id-token: write # Needed to authenticate with AWS
50
+
contents: read # If you want to checkout the repo
51
+
steps:
52
+
- name: Checkout the repo
53
+
uses: actions/checkout@v4
54
+
55
+
- name: Build docs
56
+
run: exit 1; # Replace with actually building docs
57
+
58
+
- name: Sync docs
59
+
uses: deephaven/salmon-sync@v1
60
+
with:
61
+
source: temp/blog
62
+
destination: deephaven/deephaven.io/blog
63
+
production: true # false for pr previews
64
+
temporary: false # true will delete non-production files after 14 days
0 commit comments