@@ -35,12 +35,12 @@ jobs:
35
35
outputs :
36
36
repo-cache-hit : ${{ steps.cache-last-commit.outputs.cache-hit }}
37
37
steps :
38
- - uses : actions/checkout@v3
38
+ - uses : actions/checkout@v4
39
39
with :
40
40
repository : ' eclipse/lemminx'
41
41
fetch-depth : 2
42
42
path : lemminx
43
- - uses : actions/checkout@v3
43
+ - uses : actions/checkout@v4
44
44
with :
45
45
repository : ' redhat-developer/vscode-xml'
46
46
fetch-depth : 2
@@ -53,14 +53,14 @@ jobs:
53
53
git rev-parse HEAD >> ../lastCommit
54
54
- name : Check New Changes
55
55
id : cache-last-commit
56
- uses : actions/cache@v2
56
+ uses : actions/cache@v4
57
57
with :
58
58
path : lastCommit
59
59
key : lastCommit-${{ hashFiles('lastCommit') }}
60
60
build-binaries-job :
61
61
needs : should-build-change
62
62
if : ${{ needs.should-build-change.outputs.repo-cache-hit != 'true' || github.event_name != 'schedule' }}
63
- uses : redhat-developer /vscode-xml/.github/workflows/native-image.yaml@main
63
+ uses : rgrunber /vscode-xml/.github/workflows/native-image.yaml@main
64
64
with :
65
65
publishPreRelease : ${{ github.event_name == 'schedule' || inputs.publishPreRelease == 'true' }}
66
66
packaging-job :
69
69
steps :
70
70
- name : Checkout LemMinX
71
71
if : " ${{ github.event_name == 'schedule' || inputs.publishPreRelease == 'true' }}"
72
- uses : actions/checkout@v2
72
+ uses : actions/checkout@v4
73
73
with :
74
74
repository : eclipse/lemminx
75
75
- name : Build LemMinX Server Uber Jar
79
79
mkdir ../staging
80
80
cp org.eclipse.lemminx/target/org.eclipse.lemminx*-uber.jar ../staging
81
81
- name : Check Out VS Code XML
82
- uses : actions/checkout@v2
82
+ uses : actions/checkout@v4
83
83
- name : Set Up NodeJS
84
- uses : actions/setup-node@v2
84
+ uses : actions/setup-node@v4
85
85
with :
86
86
node-version : ' 18'
87
87
- name : Install dependencies
@@ -112,7 +112,7 @@ jobs:
112
112
fi
113
113
echo "EXT_VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV
114
114
- name : Download LemMinX Binary Artifacts
115
- uses : actions/download-artifact@v3
115
+ uses : actions/download-artifact@v4
116
116
- name : Prepare Binary Artifacts For Packaging
117
117
run : |
118
118
mkdir -p ../staging/zips ../staging/checksums
@@ -142,13 +142,13 @@ jobs:
142
142
vsce package ${{ env.publishPreReleaseFlag }} -o vscode-xml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix
143
143
ls -lash *.vsix
144
144
- name : Upload VSIX Artifacts
145
- uses : actions/upload-artifact@v2
145
+ uses : actions/upload-artifact@v4
146
146
with :
147
147
name : vscode-xml
148
148
path : vscode-xml*-${{ env.EXT_VERSION }}-${{github.run_number}}.vsix
149
149
if-no-files-found : error
150
150
- name : Upload LemMinX Uber Jar
151
- uses : actions/upload-artifact@v2
151
+ uses : actions/upload-artifact@v4
152
152
with :
153
153
name : lemminx-uber-jar
154
154
path : server/org.eclipse.lemminx*-uber.jar
@@ -170,9 +170,9 @@ jobs:
170
170
needs : packaging-job
171
171
steps :
172
172
- name : Check Out VS Code XML
173
- uses : actions/checkout@v2
173
+ uses : actions/checkout@v4
174
174
- name : Set Up NodeJS
175
- uses : actions/setup-node@v2
175
+ uses : actions/setup-node@v4
176
176
with :
177
177
node-version : ' 18'
178
178
- name : Install dependencies
@@ -184,7 +184,7 @@ jobs:
184
184
if : ${{ inputs.publishToMarketPlace == 'true' }}
185
185
run : sed -i -e "s|${{ env.downloadLocation }}/releases/download/latest|${{ env.downloadLocation }}/releases/download/${{ env.XML_SERVER_VERSION }}|g" package.json
186
186
- name : Download VSIX & LemMinX Server Uber Jar
187
- uses : actions/download-artifact@v3
187
+ uses : actions/download-artifact@v4
188
188
- name : Build vscode-xml
189
189
run : |
190
190
npm install
@@ -202,13 +202,13 @@ jobs:
202
202
if : ${{ github.event_name == 'schedule' || inputs.publishToMarketPlace == 'true' || inputs.publishPreRelease == 'true' }}
203
203
run : |
204
204
for platformVsix in vscode-xml/vscode-xml-*-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix; do
205
- vsce publish -p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} --packagePath ${platformVsix}
205
+ vsce publish --skip-duplicate - p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} --packagePath ${platformVsix}
206
206
done
207
- vsce publish -p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} --packagePath vscode-xml/vscode-xml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix
207
+ vsce publish --skip-duplicate - p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} --packagePath vscode-xml/vscode-xml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix
208
208
- name : Publish to OpenVSX Registry
209
209
if : ${{ github.event_name == 'schedule' || inputs.publishToOVSX == 'true' || inputs.publishPreRelease == 'true' }}
210
210
run : |
211
211
for platformVsix in vscode-xml/vscode-xml-*-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix; do
212
- ovsx publish -p ${{ secrets.OVSX_MARKETPLACE_TOKEN }} --packagePath ${platformVsix}
212
+ ovsx publish --skip-duplicate - p ${{ secrets.OVSX_MARKETPLACE_TOKEN }} --packagePath ${platformVsix}
213
213
done
214
- ovsx publish -p ${{ secrets.OVSX_MARKETPLACE_TOKEN }} --packagePath vscode-xml/vscode-xml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix
214
+ ovsx publish --skip-duplicate - p ${{ secrets.OVSX_MARKETPLACE_TOKEN }} --packagePath vscode-xml/vscode-xml-${{ env.EXT_VERSION }}-${GITHUB_RUN_NUMBER}.vsix
0 commit comments