Skip to content

Commit b31f45a

Browse files
committed
update old vercel.json format
1 parent 13cd71a commit b31f45a

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

actions/publish-vercel/action.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,22 @@ runs:
2525
- name: "Create temp vercel.json file"
2626
shell: bash
2727
run: |
28-
cat <<EOF > vercel.json
28+
cat <<EOF > .artifacts/docs/html/vercel.json
2929
{
3030
"version": 2,
3131
"public": false,
32-
"github": {
33-
"enabled": false
34-
},
35-
"builds": [
36-
{ "src": ".artifacts/docs/html", "use": "@vercel/static" }
37-
]
32+
"git": {
33+
"deploymentEnabled": false
34+
}
3835
}
3936
EOF
4037
4138
- uses: amondnet/[email protected] #deploy
4239
with:
4340
vercel-token: ${{ inputs.VERCEL_TOKEN }} # Required
44-
#vercel-args: '--prod' #Optional
41+
vercel-args: '--prod' #Optional
4542
vercel-org-id: ${{ inputs.VERCEL_ORG_ID}} #Required
4643
vercel-project-id: ${{ inputs.VERCEL_PROJECT_ID}} #Required
47-
working-directory: ./
44+
working-directory: .artifacts/docs/html
4845

4946

0 commit comments

Comments
 (0)