mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Publish VS Code extension automatically
This commit is contained in:
parent
af9a9abbd8
commit
27ddb127db
1 changed files with 19 additions and 3 deletions
22
.github/workflows/release.yaml
vendored
22
.github/workflows/release.yaml
vendored
|
@ -106,6 +106,17 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: ['build-server', 'build-clients']
|
||||
steps:
|
||||
- name: Install Nodejs
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
|
||||
- run: echo "::set-env name=TAG::$(date --iso)"
|
||||
- run: 'echo "TAG: $TAG"'
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: editor-plugins
|
||||
|
@ -124,9 +135,6 @@ jobs:
|
|||
path: dist
|
||||
- run: ls -all ./dist
|
||||
|
||||
- run: echo "::set-env name=TAG::$(date --iso)"
|
||||
- run: 'echo "TAG: $TAG"'
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
# uses: actions/create-release@v1
|
||||
|
@ -184,3 +192,11 @@ jobs:
|
|||
asset_path: ./dist/rust-analyzer.el
|
||||
asset_name: rust-analyzer.el
|
||||
asset_content_type: text/plain
|
||||
|
||||
- run: npm ci
|
||||
working-directory: ./editors/code
|
||||
|
||||
- name: Publish Extension
|
||||
working-directory: ./editors/code
|
||||
# token from https://dev.azure.com/rust-analyzer/
|
||||
run: ./node_modules/vsce/out/vsce publish 0.1.0.$(date +%Y%m%d) --pat ${{ secrets.MARKETPLACE_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue