aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-17 13:55:36 +0000
committerAleksey Kladov <[email protected]>2020-02-17 13:55:36 +0000
commit8c51ebec4564be693bce73928ded060ef21ec809 (patch)
tree02dc130ff5c481a01f63ea5843acfa4de6e3ab45 /.github
parent4fea5808e9209c385e915d9d060c18520ce081b3 (diff)
Fix release process
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yaml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index eae4fbcb5..7356c879f 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -112,7 +112,8 @@ jobs:
112 node-version: 12.x 112 node-version: 12.x
113 113
114 - run: echo "::set-env name=TAG::$(date --iso)" 114 - run: echo "::set-env name=TAG::$(date --iso)"
115 - run: 'echo "TAG: $TAG"' 115 - run: echo "::set-env name=EXT_VERSION::0.1.$(date +%Y%m%d)"
116 - run: 'echo "TAG: $TAG EXT_VERSION: $EXT_VERSION"'
116 117
117 - name: Checkout repository 118 - name: Checkout repository
118 uses: actions/checkout@v1 119 uses: actions/checkout@v1
@@ -180,8 +181,8 @@ jobs:
180 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 181 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
181 with: 182 with:
182 upload_url: ${{ steps.create_release.outputs.upload_url }} 183 upload_url: ${{ steps.create_release.outputs.upload_url }}
183 asset_path: ./dist/rust-analyzer-0.1.0.vsix 184 asset_path: ./dist/rust-analyzer-$EXT_VERSION.vsix
184 asset_name: rust-analyzer-0.1.0.vsix 185 asset_name: rust-analyzer-$EXT_VERSION.vsix
185 asset_content_type: application/octet-stream 186 asset_content_type: application/octet-stream
186 187
187 - run: npm ci 188 - run: npm ci
@@ -190,4 +191,4 @@ jobs:
190 - name: Publish Extension 191 - name: Publish Extension
191 working-directory: ./editors/code 192 working-directory: ./editors/code
192 # token from https://dev.azure.com/rust-analyzer/ 193 # token from https://dev.azure.com/rust-analyzer/
193 run: npx vsce publish 0.1.$(date +%Y%m%d) --pat ${{ secrets.MARKETPLACE_TOKEN }} 194 run: npx vsce publish $EXT_VERSION --pat ${{ secrets.MARKETPLACE_TOKEN }}