-
Notifications
You must be signed in to change notification settings - Fork 204
31 lines (29 loc) · 1.02 KB
/
publish-once.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Publish an extensions from a vsix file
on:
workflow_dispatch:
inputs:
extensions:
description: "URL of the `.vsix`"
required: true
namespace:
description: "If a namespace does not exist for the author, provide it here"
required: false
flags:
description: "Additional flags to pass to the `vsce publish` command"
required: false
default: ""
jobs:
publish:
name: node publish-extensions
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3.8.1
with:
node-version: "18.x"
- name: Download extension file
run: wget -O extension.vsix ${{ github.event.inputs.extensions }}
- name: Create Open VSX namespace
if: ${{ github.event.inputs.namespace }}
run: npx ovsx create-namespace ${{ github.event.inputs.namespace }} -p ${{ secrets.OVSX_PAT }}
- name: Publish to Open VSX
run: npx ovsx publish extension.vsix -p ${{ secrets.OVSX_PAT }} ${{ github.event.inputs.flags }}