Skip to content

Commit

Permalink
add publish
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-kotulski committed Jan 16, 2025
1 parent ff87cd3 commit 2aa8814
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: publish

on:
workflow_call:

jobs:
publish:
name: publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Nodejs
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v7
with:
workflow: build_workflow.yml
name: package
path: ./editor/dist

- name: Publish Extension (Code Marketplace, release)
working-directory: editor
run: |
npm i
npm install --global @vscode/vsce
npx vsce publish --pat ${{ secrets.VS_MARKETPLACE_TOKEN }} --packagePath ./dist/*.vsix
14 changes: 14 additions & 0 deletions .github/workflows/publish_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: publish_workflow

on:
push:
branches:
- main

jobs:
call-build:
uses: ./.github/workflows/build.yml
call-publish:
needs: call-build
uses: ./.github/workflows/publish.yml
secrets: inherit

0 comments on commit 2aa8814

Please sign in to comment.