Skip to content

Commit 43ed5a5

Browse files
Cleanup GH action
1 parent cc9910e commit 43ed5a5

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/make-release.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,30 @@ on:
66
# tags:
77
# - '*'
88

9-
109
jobs:
1110
build-vsix:
1211
runs-on: ubuntu-20.04
1312
steps:
13+
1414
- uses: actions/checkout@v4
1515
with:
1616
submodules: true
17+
1718
- uses: actions/setup-node@v4
1819
with:
1920
node-version: 20
2021
cache: 'npm'
2122
cache-dependency-path: ./package-lock.json
22-
- name: Install code
23+
24+
- name: Install NPM dependencies
2325
run: |
24-
sudo snap install --classic code
26+
npm install -g @vscode/vsce
27+
npm install
28+
2529
- name: Build VSIX
2630
run: |
27-
rm -f *.vsix
28-
vsce package
31+
rm -f *.vsix
32+
vsce package
2933
3034
- name: Upload VSIX
3135
uses: actions/upload-artifact@v4
@@ -38,20 +42,27 @@ jobs:
3842
runs-on: ubuntu-latest
3943
permissions:
4044
contents: write
45+
4146
steps:
47+
4248
- uses: actions/checkout@v4
4349
with:
4450
submodules: true
51+
4552
- name: Download all artifacts
4653
uses: actions/download-artifact@v4
4754
with:
4855
path: .
56+
4957
- name: Renaming artifacts
5058
run: |
5159
rev=$(git rev-parse --short HEAD)
60+
#ls -altR
5261
mkdir release
53-
mkdir tmp && cd tmp && unzip ../arduino-littlefs-upload.vsix.zip/*zip && mv */*vsix ../release/. && cd .. && rm -rf tmp
62+
cp ./arduino-littlefs-upload.vsix/arduino-littlefs-upload-*.vsix ./release/.
63+
#mkdir tmp && cd tmp && unzip ../arduino-littlefs-upload.vsix.zip/*zip && mv */*vsix ../release/. && cd .. && rm -rf tmp
5464
ls -l release
65+
5566
- name: Drafting release
5667
uses: ncipollo/release-action@v1
5768
with:

0 commit comments

Comments
 (0)