-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (72 loc) · 2.59 KB
/
release.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
76
77
78
79
80
81
82
83
84
name: Publish Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
prepare_release:
name: Prepare Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get version from tag
id: get_version
uses: jannemattila/get-version-from-tag@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 21
- run: npm ci
- name: Package Extension
id: packageExtension
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: stub
dryRun: true
- name: Create Draft Release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release ${{ github.ref }}
body: |
The Galaxy Workflows Extension is available at:
- [Open VSX Registry](https://open-vsx.org/extension/davelopez/galaxy-workflows)
- [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=davelopez.galaxy-workflows)
You can also manually install the extension by downloading the VSIX package included in this release and then running:
```
code --install-extension galaxy-workflows-${{ steps.get_version.outputs.version }}.vsix
```
draft: true
prerelease: false
generate_release_notes: true
files: ${{ steps.packageExtension.outputs.vsixPath }}
outputs:
release_version: ${{ steps.get_version.outputs.version }}
release_upload_url: ${{ steps.create_release.outputs.upload_url }}
vsixPath: ${{ steps.packageExtension.outputs.vsixPath }}
publish_release:
name: Publish extension to Open-VSX and VSCode Marketplace
needs: prepare_release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 21
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ needs.prepare_release.outputs.vsixPath}}
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
extensionFile: ${{ needs.prepare_release.outputs.vsixPath}}