Skip to content

Commit 8345fb6

Browse files
committed
check out repo first
1 parent be010b4 commit 8345fb6

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/upload-dev-build.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,33 @@ jobs:
6666
id: generate-token
6767
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 #v3.1.1
6868
with:
69-
app-id: ${{ vars.DEV_DEPLOY_APP_ID }}
69+
client-id: ${{ vars.DEV_DEPLOY_APP_ID }}
7070
private-key: ${{ secrets.DEV_DEPLOY_APP_PRIVATE_KEY }}
7171
owner: plotly
7272
repositories: plotly.js-dev-builds
7373

74+
- name: Check out plotly.js-dev-builds repo
75+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
76+
with:
77+
repository: plotly/plotly.js-dev-builds
78+
token: ${{ steps.generate-token.outputs.token }} # token from previous step
79+
branch: main
80+
81+
- name: Change directory
82+
run: |
83+
cd plotly.js-dev-builds
84+
7485
- name: Upload to plotly.js-dev-builds repo
7586
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
7687
with:
7788
repository-name: plotly/plotly.js-dev-builds
78-
token: ${{ steps.generate-token.outputs.token }} # create-github-app-token action automatically outputs the token
79-
branch: gh-pages
89+
token: ${{ steps.generate-token.outputs.token }} # token from previous step
90+
branch: main
8091
folder: upload
8192
target-folder: .
8293
clean: false
94+
git-config-name: "plotly.js-pr-upload"
95+
git-config-email: "<>"
8396

8497
- name: Generate Summary
8598
run: |

0 commit comments

Comments
 (0)