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

View File

@ -12,7 +12,7 @@ env:
jobs: jobs:
metrics: 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 runs-on: ubuntu-latest
steps: steps:

View File

@ -247,12 +247,12 @@ jobs:
working-directory: ./editors/code working-directory: ./editors/code
- name: Publish Extension (release) - 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 working-directory: ./editors/code
# token from https://dev.azure.com/rust-analyzer/ # token from https://dev.azure.com/rust-analyzer/
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
- name: Publish Extension (nightly) - 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 working-directory: ./editors/code
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release

View File

@ -12,7 +12,7 @@ env:
jobs: jobs:
rustdoc: 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 runs-on: ubuntu-latest
steps: steps: