-
Notifications
You must be signed in to change notification settings - Fork 14
75 lines (59 loc) · 2.5 KB
/
PublishToOpenVsx.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# This is a basic workflow that is manually triggered
name: Publish to OpenVSX
# on:
# release:
# # Only use the types keyword to narrow down the activity types that will trigger your workflow.
# # types: [published]
# types: [published, created, edited]
# curl -sL https://api.github.com/repos/f5devcentral/vscode-f5/releases/latest | jq .assets[0].browser_download_url
# "https://github.com/f5devcentral/vscode-f5/releases/download/v2.3.0/vscode-f5-fast-2.3.0.vsix"
# single line command to download latest release
# curl -sL https://api.github.com/repos/f5devcentral/vscode-f5/releases/latest | jq .assets[0].browser_download_url | xargs wget
on:
workflow_dispatch:
jobs:
Build_Publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
# - name: get latest release name
# id: get_release_name
# run: echo ::set-output name=name::$(curl -sL https://api.github.com/repos/f5devcentral/vscode-f5/releases/latest | jq .assets[0].name)
# # outputs:
# # releaseName:
# # description: 'full name of the release'
# - name: display release name from output
# # run: echo ${{ outputs.releaseName.value }}
# run: echo ${{ steps.get_release_name.outputs.name }}
# - name: download latest release
# run: "curl -sL https://api.github.com/repos/f5devcentral/vscode-f5/releases/latest | jq .assets[0].browser_download_url | xargs wget"
# shell: bash
# - name: list directory
# run: ls -la
# shell: bash
- name: npm install everything
run: npm install
- name: Publish to Open VSX Registry
id: publishToOpenVSX
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
# extensionFile: ${{ steps.get_release_name.outputs.name }}
# packagePath: ''
# dryRun: true
# - name: display open vsx output
# run:
# echo ${{ steps.publishToOpenVSX.outputs.vsixPath }}
# echo ${{ steps.get_release_name.outputs.name }}
# - name: Publish to Visual Studio Marketplace
# uses: HaaLeo/publish-vscode-extension@v0
# with:
# pat: ${{ secrets.MARKETPLACE_PUBLISH_KEY }}
# registryUrl: https://marketplace.visualstudio.com
# extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
# # extensionFile: ${{ steps.get_release_name.outputs.name }}
# packagePath: ''
# # dryRun: true