Skip to content

Commit 5f027c9

Browse files
committed
update DeployStaticPortal workflow
1 parent 1554dbb commit 5f027c9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/DeployStaticPortal.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
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
4138
uses: nwtgck/[email protected]
4239
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"

0 commit comments

Comments
 (0)