diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2020-02-17 14:55:36 +0100 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2020-02-17 14:55:36 +0100 |
| commit | 8c51ebec4564be693bce73928ded060ef21ec809 (patch) | |
| tree | 02dc130ff5c481a01f63ea5843acfa4de6e3ab45 | |
| parent | 4fea5808e9209c385e915d9d060c18520ce081b3 (diff) | |
| download | rust-8c51ebec4564be693bce73928ded060ef21ec809.tar.gz rust-8c51ebec4564be693bce73928ded060ef21ec809.zip | |
Fix release process
| -rw-r--r-- | .github/workflows/release.yaml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index eae4fbcb5f2..7356c879f50 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -112,7 +112,8 @@ jobs: node-version: 12.x - 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 uses: actions/checkout@v1 @@ -180,8 +181,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./dist/rust-analyzer-0.1.0.vsix - asset_name: rust-analyzer-0.1.0.vsix + asset_path: ./dist/rust-analyzer-$EXT_VERSION.vsix + asset_name: rust-analyzer-$EXT_VERSION.vsix asset_content_type: application/octet-stream - run: npm ci @@ -190,4 +191,4 @@ jobs: - name: Publish Extension working-directory: ./editors/code # 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 }} |
