Skip to content

Commit fc1d2a0

Browse files
authored
Add deployment per branch using superactions (#70)
1 parent 6aa7630 commit fc1d2a0

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424

2525
- run: pnpm prepare-deploy
2626

27+
# deployment per branch
28+
- uses: superactions/deploy-branch-action@action
29+
if: ${{ github.ref != 'refs/heads/main' }}
30+
with:
31+
directory: packages/vscode-host/dist
32+
33+
# --- production deployments (only on main)
2734
# deploy app
2835
- uses: ngduc/vercel-deploy-action@master
2936
if: ${{ github.ref == 'refs/heads/main' }}
@@ -37,19 +44,6 @@ jobs:
3744
vercel-args: "--prod"
3845
env:
3946
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
40-
- uses: ngduc/vercel-deploy-action@master
41-
if: ${{ github.ref != 'refs/heads/main' }}
42-
with:
43-
vercel-cli: vercel
44-
vercel-project-id: ${{ secrets.VERCEL_APP_PROJECT_ID}}
45-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
46-
vercel-token: ${{ secrets.VERCEL_TOKEN }}
47-
github-token: ${{ secrets.GITHUB_TOKEN }}
48-
scope: ${{ secrets.VERCEL_ORG_ID }}
49-
working-directory: packages/vscode-host/dist
50-
vercel-args: "--target staging"
51-
env:
52-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
5347

5448
# deploy entrypoint (no preview)
5549
- uses: ngduc/vercel-deploy-action@master

0 commit comments

Comments
 (0)