Skip to content

Commit ee4fe18

Browse files
committed
Don't trigger stable release when pushing to nightly branch
1 parent b792e4a commit ee4fe18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ jobs:
4949
node-version: 12.x
5050

5151
- name: Dist
52-
if: github.event_name == 'push'
52+
if: github.ref == 'refs/heads/release'
5353
run: cargo xtask dist --version 0.2.$GITHUB_RUN_NUMBER --tag $(date --iso --utc)
5454

5555
- name: Dist
56-
if: github.event_name != 'push'
56+
if: github.ref != 'refs/heads/release'
5757
run: cargo xtask dist --version 0.3.$GITHUB_RUN_NUMBER-nightly --tag nightly
5858

5959
- name: Upload artifacts
@@ -73,9 +73,9 @@ jobs:
7373
node-version: 12.x
7474

7575
- run: echo "::set-env name=TAG::$(date --iso --utc)"
76-
if: github.event_name == 'push'
76+
if: github.ref == 'refs/heads/release'
7777
- run: echo "::set-env name=TAG::nightly"
78-
if: github.event_name == 'schedule'
78+
if: github.ref != 'refs/heads/release'
7979
- run: 'echo "TAG: $TAG"'
8080

8181
- name: Checkout repository
@@ -106,7 +106,7 @@ jobs:
106106
working-directory: ./editors/code
107107

108108
- name: Publish Extension
109-
if: github.event_name == 'push'
109+
if: github.ref == 'refs/heads/release'
110110
working-directory: ./editors/code
111111
# token from https://dev.azure.com/rust-analyzer/
112112
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer.vsix

0 commit comments

Comments
 (0)