File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1111 runs-on : ubuntu-latest
1212
1313 env :
14- PORTAL_DIR : static-portal
14+ PORTAL_DIR : ${{ github.workspace }}/ static-portal
1515
1616 steps :
1717 - uses : actions/checkout@v4
@@ -23,24 +23,21 @@ jobs:
2323 with :
2424 node-version : " 20"
2525
26- - name : Install APImatic CLI
27- run : npm install -g @apimatic/cli
28-
2926 # Generate Portal with APImatic CLI
3027 - name : Generate Portal
31- run : apimatic portal: generate --auth-key=${{ secrets.API_KEY }} --destination=./${{ env.PORTAL_DIR }}
28+ run : npx @ apimatic/cli portal generate --auth-key=" ${{ secrets.API_KEY }}" --destination=./${{ env.PORTAL_DIR }}
3229
3330 # Upload Portal Artifact
3431 - name : Upload Artifact
3532 uses : actions/upload-artifact@v4
3633 with :
37- name : ${{ env.PORTAL_DIR }}
34+ name : static-portal
3835 path : ${{ env.PORTAL_DIR }}
3936
4037 - name : Deploy to Netlify
41384239 with :
43- publish-dir : " ./ ${{ env.PORTAL_DIR }}"
40+ publish-dir : ${{ env.PORTAL_DIR }}
4441 production-branch : master
4542 github-token : ${{ secrets.GITHUB_TOKEN }}
4643 deploy-message : " Deploy from GitHub Actions"
You can’t perform that action at this time.
0 commit comments