mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Fix release process
This commit is contained in:
parent
4fea5808e9
commit
8c51ebec45
1 changed files with 5 additions and 4 deletions
9
.github/workflows/release.yaml
vendored
9
.github/workflows/release.yaml
vendored
|
@ -112,7 +112,8 @@ jobs:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
|
|
||||||
- run: echo "::set-env name=TAG::$(date --iso)"
|
- run: echo "::set-env name=TAG::$(date --iso)"
|
||||||
- run: 'echo "TAG: $TAG"'
|
- run: echo "::set-env name=EXT_VERSION::0.1.$(date +%Y%m%d)"
|
||||||
|
- run: 'echo "TAG: $TAG EXT_VERSION: $EXT_VERSION"'
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
@ -180,8 +181,8 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./dist/rust-analyzer-0.1.0.vsix
|
asset_path: ./dist/rust-analyzer-$EXT_VERSION.vsix
|
||||||
asset_name: rust-analyzer-0.1.0.vsix
|
asset_name: rust-analyzer-$EXT_VERSION.vsix
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
@ -190,4 +191,4 @@ jobs:
|
||||||
- name: Publish Extension
|
- name: Publish Extension
|
||||||
working-directory: ./editors/code
|
working-directory: ./editors/code
|
||||||
# token from https://dev.azure.com/rust-analyzer/
|
# token from https://dev.azure.com/rust-analyzer/
|
||||||
run: npx vsce publish 0.1.$(date +%Y%m%d) --pat ${{ secrets.MARKETPLACE_TOKEN }}
|
run: npx vsce publish $EXT_VERSION --pat ${{ secrets.MARKETPLACE_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue