Skip to content

Commit aa6ab7d

Browse files
committed
add publish workflow job
1 parent 69675a0 commit aa6ab7d

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- "v*"
9+
710
pull_request:
811
branches:
912
- main
@@ -96,7 +99,7 @@ jobs:
9699
if: always()
97100

98101
package:
99-
needs: test
102+
#needs: test
100103
runs-on: ubuntu-latest
101104

102105
steps:
@@ -147,3 +150,26 @@ jobs:
147150
with:
148151
name: wheel-package
149152
path: dist/*.whl
153+
154+
publish:
155+
runs-on: ubuntu-latest
156+
needs: package
157+
#if: success() && startsWith( github.ref, 'refs/tags/v')
158+
if: success()
159+
steps:
160+
- uses: actions/download-artifact@v2
161+
with:
162+
name: vscode-package
163+
path: dist
164+
- uses: actions/download-artifact@v2
165+
with:
166+
name: python-package
167+
path: dist
168+
- uses: actions/download-artifact@v2
169+
with:
170+
name: wheel-package
171+
path: dist
172+
- run: poetry run npm-publish
173+
env:
174+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
175+

0 commit comments

Comments
 (0)