minor: prepare CI for rust-lang move

This commit is contained in:
Lukas Wirth 2022-04-13 12:26:24 +02:00
parent 24af94b474
commit be34896433
4 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@ env:
jobs:
rust:
if: github.repository == 'rust-analyzer/rust-analyzer'
if: github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer'
name: Rust
runs-on: ${{ matrix.os }}
env:
@ -62,7 +62,7 @@ jobs:
# Weird targets to catch non-portable code
rust-cross:
if: github.repository == 'rust-analyzer/rust-analyzer'
if: github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer'
name: Rust Cross
runs-on: ubuntu-latest
@ -99,7 +99,7 @@ jobs:
done
typescript:
if: github.repository == 'rust-analyzer/rust-analyzer'
if: github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer'
name: TypeScript
strategy:
fail-fast: false

View file

@ -12,7 +12,7 @@ env:
jobs:
metrics:
if: github.repository == 'rust-analyzer/rust-analyzer'
if: github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer'
runs-on: ubuntu-latest
steps:

View file

@ -247,12 +247,12 @@ jobs:
working-directory: ./editors/code
- name: Publish Extension (release)
if: github.ref == 'refs/heads/release' && github.repository == 'rust-analyzer/rust-analyzer'
if: github.ref == 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
working-directory: ./editors/code
# token from https://dev.azure.com/rust-analyzer/
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
- name: Publish Extension (nightly)
if: github.ref != 'refs/heads/release' && github.repository == 'rust-analyzer/rust-analyzer'
if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
working-directory: ./editors/code
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release

View file

@ -12,7 +12,7 @@ env:
jobs:
rustdoc:
if: github.repository == 'rust-analyzer/rust-analyzer'
if: github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer'
runs-on: ubuntu-latest
steps: