-
-
Notifications
You must be signed in to change notification settings - Fork 282
56 lines (53 loc) · 1.8 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
name: Release
on:
workflow_dispatch:
inputs:
username:
description: Github username of the person triggering the release
default: "Krzysztof-Cieslak"
required: true
email:
description: Email of the person triggering the release
default: "[email protected]"
required: true
jobs:
release:
# this workflow is the same as the build workflow, up until artifact upload + publish
runs-on: windows-latest # can be any, just picked windows
steps:
# manual triggers are detached HEADs, so we need to checkout the branch
# to actually create + push a commit later on in the workflow
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
- uses: actions/setup-node@v3
with:
node-version: '22'
cache: 'yarn'
- name: Restore tools
run: dotnet tool restore
- name: Run Test
run: dotnet run --project build -- -t BuildPackage
- name: upload artifact package
uses: actions/upload-artifact@v4
with:
name: ionide-fsharp-vscode-ext
path: release/
- name: Publish Release
env:
nuget-key: ${{ secrets.NUGET_KEY }}
github-user: ${{ github.event.inputs.username }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
vsce-token: ${{ secrets.VSCE_TOKEN }}
user-email: ${{ github.event.inputs.email }}
run: dotnet run --project build -- -t Release
- name: Build OpenVsix package
run: dotnet run --project build -- -t BuildPackageOpenVsix
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
packagePath: "./release"
pat: ${{ secrets.OPEN_VSX_TOKEN }}