2222
2323jobs :
2424 dist :
25+ if : ${{ github.repository == 'rust-lang/rust-analyzer' || github.event.action == 'workflow_dispatch' }}
2526 strategy :
2627 matrix :
2728 include :
@@ -33,14 +34,14 @@ jobs:
3334 - os : windows-latest
3435 target : aarch64-pc-windows-msvc
3536 code-target : win32-arm64
36- - os : ubuntu-20.04
37+ - os : ubuntu-latest
3738 target : x86_64-unknown-linux-gnu
3839 code-target : linux-x64
3940 container : rockylinux:8
40- - os : ubuntu-20.04
41+ - os : ubuntu-latest
4142 target : aarch64-unknown-linux-gnu
4243 code-target : linux-arm64
43- - os : ubuntu-20.04
44+ - os : ubuntu-latest
4445 target : arm-unknown-linux-gnueabihf
4546 code-target : linux-armhf
4647 - os : macos-13
@@ -138,6 +139,7 @@ jobs:
138139 path : ./dist
139140
140141 dist-x86_64-unknown-linux-musl :
142+ if : ${{ github.repository == 'rust-lang/rust-analyzer' || github.event.action == 'workflow_dispatch' }}
141143 name : dist (x86_64-unknown-linux-musl)
142144 runs-on : ubuntu-latest
143145 env :
@@ -183,6 +185,7 @@ jobs:
183185 path : ./dist
184186
185187 publish :
188+ if : ${{ github.repository == 'rust-lang/rust-analyzer' || github.event.action == 'workflow_dispatch' }}
186189 name : publish
187190 runs-on : ubuntu-latest
188191 needs : ["dist", "dist-x86_64-unknown-linux-musl"]
@@ -257,24 +260,24 @@ jobs:
257260 working-directory : ./editors/code
258261
259262 - name : Publish Extension (Code Marketplace, release)
260- if : github.ref == 'refs/heads/release' && ( github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust- lang/rust-analyzer')
263+ if : github.ref == 'refs/heads/release' && github.repository == 'rust-lang/rust-analyzer'
261264 working-directory : ./editors/code
262265 # token from https://dev.azure.com/rust-analyzer/
263266 run : npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
264267
265268 - name : Publish Extension (OpenVSX, release)
266- if : github.ref == 'refs/heads/release' && ( github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust- lang/rust-analyzer')
269+ if : github.ref == 'refs/heads/release' && github.repository == 'rust-lang/rust-analyzer'
267270 working-directory : ./editors/code
268271 run : npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
269272 timeout-minutes : 2
270273
271274 - name : Publish Extension (Code Marketplace, nightly)
272- if : github.ref != 'refs/heads/release' && ( github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust- lang/rust-analyzer')
275+ if : github.ref != 'refs/heads/release' && github.repository == 'rust-lang/rust-analyzer'
273276 working-directory : ./editors/code
274277 run : npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release
275278
276279 - name : Publish Extension (OpenVSX, nightly)
277- if : github.ref != 'refs/heads/release' && ( github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust- lang/rust-analyzer')
280+ if : github.ref != 'refs/heads/release' && github.repository == 'rust-lang/rust-analyzer'
278281 working-directory : ./editors/code
279282 run : npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
280283 timeout-minutes : 2
0 commit comments