aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/release.yaml22
1 files changed, 19 insertions, 3 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 4103e46c2..b4c42d0b7 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -106,6 +106,17 @@ jobs:
106 runs-on: ubuntu-latest 106 runs-on: ubuntu-latest
107 needs: ['build-server', 'build-clients'] 107 needs: ['build-server', 'build-clients']
108 steps: 108 steps:
109 - name: Install Nodejs
110 uses: actions/setup-node@v1
111 with:
112 node-version: 12.x
113
114 - run: echo "::set-env name=TAG::$(date --iso)"
115 - run: 'echo "TAG: $TAG"'
116
117 - name: Checkout repository
118 uses: actions/checkout@v1
119
109 - uses: actions/download-artifact@v1 120 - uses: actions/download-artifact@v1
110 with: 121 with:
111 name: editor-plugins 122 name: editor-plugins
@@ -124,9 +135,6 @@ jobs:
124 path: dist 135 path: dist
125 - run: ls -all ./dist 136 - run: ls -all ./dist
126 137
127 - run: echo "::set-env name=TAG::$(date --iso)"
128 - run: 'echo "TAG: $TAG"'
129
130 - name: Create Release 138 - name: Create Release
131 id: create_release 139 id: create_release
132 # uses: actions/create-release@v1 140 # uses: actions/create-release@v1
@@ -184,3 +192,11 @@ jobs:
184 asset_path: ./dist/rust-analyzer.el 192 asset_path: ./dist/rust-analyzer.el
185 asset_name: rust-analyzer.el 193 asset_name: rust-analyzer.el
186 asset_content_type: text/plain 194 asset_content_type: text/plain
195
196 - run: npm ci
197 working-directory: ./editors/code
198
199 - name: Publish Extension
200 working-directory: ./editors/code
201 # token from https://dev.azure.com/rust-analyzer/
202 run: ./node_modules/vsce/out/vsce publish 0.1.0.$(date +%Y%m%d) --pat ${{ secrets.MARKETPLACE_TOKEN }}