Skip to content

Fix wrong artifact path in CI publish job #14

Fix wrong artifact path in CI publish job

Fix wrong artifact path in CI publish job #14

Workflow file for this run

name: Build & publish
on:
push:
branches:
- main
tags:
- "*.*.*"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
- name: Setup node 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Build
run: npm i
- name: Lint
run: npm run lint
- name: Package
run: npx vsce package -o tarantool-vscode.vsix
- name: Upload
uses: actions/upload-artifact@v4
with:
name: tarantool-vscode
path: ${{ github.workspace }}/tarantool-vscode.vsix
publish:
runs-on: ubuntu-latest
needs: [build]
if: success() && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
- run: npx vsce publish --packagePath $(find tarantool-vscode* -iname "*.vsix")
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}