-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (37 loc) · 1.23 KB
/
publish.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
32
33
34
35
36
37
38
# Whenever any tag is pushed to the repo
on:
workflow_dispatch:
push:
tags:
- '*'
name: Publish extension
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run package:ci
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
# Generated via https://open-vsx.org/user-settings/tokens
# Saved locally as "CI VS Code Open VSX publish token"
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: 'ahkpp.vsix'
# dryRun: true
# preRelease: true
skipDuplicate: true
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
# https://github.com/mark-wiemer-org/ahkpp/settings/secrets/actions
# https://dev.azure.com/markwiemer/_usersSettings/tokens
# Saved locally as "CI VS Code Marketplace Publish Token"
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
extensionFile: 'ahkpp.vsix'
registryUrl: https://marketplace.visualstudio.com
# dryRun: true
# preRelease: true
skipDuplicate: true