-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (40 loc) · 1.46 KB
/
release-ide.yaml
File metadata and controls
47 lines (40 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: 🚚 Release IDE
on:
workflow_dispatch: {}
workflow_call: {}
jobs:
release-vscode:
runs-on: ubuntu-latest
name: 🖥️ Release VSCode
environment:
name: 'Vscode Marketplace'
url: https://marketplace.visualstudio.com/items?itemName=BlockceptionLtd.blockceptionvscodeminecraftbedrockdevelopmentextension
steps:
- name: 📦 Checkout Repository
uses: actions/checkout@v6
with:
submodules: true
- name: 🏗️ Setup Node.js Environment
uses: actions/setup-node@v6
with:
cache: npm
cache-dependency-path: package-lock.json
node-version-file: .nvmrc
- name: Setup Node Project
run: npm install
- name: 🛠️ Build projects
run: npm run compile
- name: 🛠️ Package
working-directory: ${{github.workspace}}/ide/vscode
run: |
npx vsce package --no-dependencies --no-git-tag-version --out vscode-extension.vsix
echo "Size of package: $(du -h *.vsix | cut -f1)" >> $GITHUB_STEP_SUMMARY
- name: 🚚 Upload Artifact
uses: actions/upload-artifact@v7
with:
name: vscode-extension
path: '${{github.workspace}}/ide/vscode/vscode-extension.vsix'
- name: 📦 -> 🏤 Upload to Vscode
run: npx @vscode/vsce publish --packagePath ${{github.workspace}}/ide/vscode/vscode-extension.vsix
env:
VSCE_PAT: ${{ secrets.VSCODE_KEY }}