Release #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | |
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 }} |