Skip to content

Commit 5eb206b

Browse files
build in publish workflows
1 parent 980556b commit 5eb206b

File tree

4 files changed

+27
-40
lines changed

4 files changed

+27
-40
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Build VSIX Package'
2+
description: 'Builds the VS Code extension VSIX package'
3+
4+
inputs:
5+
version:
6+
description: 'Version to build'
7+
required: true
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- name: Build VSIX package
13+
shell: bash
14+
run: make vsix
15+
env:
16+
VERSION: ${{ inputs.version }}
17+
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
18+
NODE_ENV: production
19+
ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events

.github/workflows/build.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -48,37 +48,3 @@ jobs:
4848
env:
4949
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
5050
NODE_ENV: ci
51-
52-
build:
53-
name: Build VSIX
54-
runs-on: ubuntu-latest
55-
needs: [lint, test]
56-
57-
steps:
58-
- name: Checkout
59-
uses: actions/checkout@v5
60-
61-
- name: Setup Node
62-
uses: actions/setup-node@v4
63-
with:
64-
cache: npm
65-
66-
- name: Install dependencies
67-
run: npm ci
68-
69-
- name: Set version from branch name
70-
uses: ./.github/actions/set-version
71-
72-
- name: Build VSIX package
73-
run: make vsix
74-
env:
75-
LOCALSTACK_WEB_AUTH_REDIRECT: https://app.localstack.cloud/redirect?name=VSCode
76-
NODE_ENV: production
77-
ANALYTICS_API_URL: https://analytics.localstack.cloud/v1/events
78-
79-
- name: Upload VSIX artifact
80-
uses: actions/upload-artifact@v4
81-
with:
82-
name: vsix-${{ env.VERSION }}
83-
path: localstack-${{ env.VERSION }}.vsix
84-
retention-days: 3

.github/workflows/publish-ovsx.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727
- name: Set version from branch name
2828
uses: ./.github/actions/set-version
2929

30-
- name: Download VSIX artifact
31-
uses: actions/download-artifact@v4
30+
- name: Build VSIX package
31+
uses: ./.github/actions/build-vsix
3232
with:
33-
name: vsix-${{ env.VERSION }}
33+
version: ${{ env.VERSION }}
3434

3535
- name: Publish to Open VSX
3636
run: make publish-ovsx
3737
env:
38+
VERSION: ${{ env.VERSION }}
3839
OVSX_PAT: ${{ secrets.OVSX_PAT }}

.github/workflows/publish-vs-marketplace.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727
- name: Set version from branch name
2828
uses: ./.github/actions/set-version
2929

30-
- name: Download VSIX artifact
31-
uses: actions/download-artifact@v4
30+
- name: Build VSIX package
31+
uses: ./.github/actions/build-vsix
3232
with:
33-
name: vsix-${{ env.VERSION }}
33+
version: ${{ env.VERSION }}
3434

3535
- name: Publish to VS Marketplace
3636
run: make publish-marketplace
3737
env:
38+
VERSION: ${{ env.VERSION }}
3839
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)