aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yaml
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-19 08:48:36 +0000
committerAleksey Kladov <[email protected]>2020-03-19 08:48:36 +0000
commitee4fe18ac819983e61ef4b34752fc13514d059cc (patch)
treed67c329983a41710187a456a370405ab775d98db /.github/workflows/release.yaml
parentb792e4abbde2c8a5d664aaac22f8418f1ee09b79 (diff)
Don't trigger stable release when pushing to nightly branch
Diffstat (limited to '.github/workflows/release.yaml')
-rw-r--r--.github/workflows/release.yaml10
1 files changed, 5 insertions, 5 deletions
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:
49 node-version: 12.x 49 node-version: 12.x
50 50
51 - name: Dist 51 - name: Dist
52 if: github.event_name == 'push' 52 if: github.ref == 'refs/heads/release'
53 run: cargo xtask dist --version 0.2.$GITHUB_RUN_NUMBER --tag $(date --iso --utc) 53 run: cargo xtask dist --version 0.2.$GITHUB_RUN_NUMBER --tag $(date --iso --utc)
54 54
55 - name: Dist 55 - name: Dist
56 if: github.event_name != 'push' 56 if: github.ref != 'refs/heads/release'
57 run: cargo xtask dist --version 0.3.$GITHUB_RUN_NUMBER-nightly --tag nightly 57 run: cargo xtask dist --version 0.3.$GITHUB_RUN_NUMBER-nightly --tag nightly
58 58
59 - name: Upload artifacts 59 - name: Upload artifacts
@@ -73,9 +73,9 @@ jobs:
73 node-version: 12.x 73 node-version: 12.x
74 74
75 - run: echo "::set-env name=TAG::$(date --iso --utc)" 75 - run: echo "::set-env name=TAG::$(date --iso --utc)"
76 if: github.event_name == 'push' 76 if: github.ref == 'refs/heads/release'
77 - run: echo "::set-env name=TAG::nightly" 77 - run: echo "::set-env name=TAG::nightly"
78 if: github.event_name == 'schedule' 78 if: github.ref != 'refs/heads/release'
79 - run: 'echo "TAG: $TAG"' 79 - run: 'echo "TAG: $TAG"'
80 80
81 - name: Checkout repository 81 - name: Checkout repository
@@ -106,7 +106,7 @@ jobs:
106 working-directory: ./editors/code 106 working-directory: ./editors/code
107 107
108 - name: Publish Extension 108 - name: Publish Extension
109 if: github.event_name == 'push' 109 if: github.ref == 'refs/heads/release'
110 working-directory: ./editors/code 110 working-directory: ./editors/code
111 # token from https://dev.azure.com/rust-analyzer/ 111 # token from https://dev.azure.com/rust-analyzer/
112 run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer.vsix 112 run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer.vsix