File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments