From ee4fe18ac819983e61ef4b34752fc13514d059cc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 19 Mar 2020 09:48:36 +0100 Subject: Don't trigger stable release when pushing to nightly branch --- .github/workflows/release.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 13bc172ba..df34dfdb8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -49,11 +49,11 @@ jobs: node-version: 12.x - name: Dist - if: github.event_name == 'push' + if: github.ref == 'refs/heads/release' run: cargo xtask dist --version 0.2.$GITHUB_RUN_NUMBER --tag $(date --iso --utc) - name: Dist - if: github.event_name != 'push' + if: github.ref != 'refs/heads/release' run: cargo xtask dist --version 0.3.$GITHUB_RUN_NUMBER-nightly --tag nightly - name: Upload artifacts @@ -73,9 +73,9 @@ jobs: node-version: 12.x - run: echo "::set-env name=TAG::$(date --iso --utc)" - if: github.event_name == 'push' + if: github.ref == 'refs/heads/release' - run: echo "::set-env name=TAG::nightly" - if: github.event_name == 'schedule' + if: github.ref != 'refs/heads/release' - run: 'echo "TAG: $TAG"' - name: Checkout repository @@ -106,7 +106,7 @@ jobs: working-directory: ./editors/code - name: Publish Extension - if: github.event_name == 'push' + if: github.ref == 'refs/heads/release' 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 -- cgit v1.2.3