Skip to content

Commit b9fe62f

Browse files
author
Robin Hermann
committed
feat: rename & add github action
1 parent 95de1d8 commit b9fe62f

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

.github/workflows/publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: windows-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: 7.0.x
21+
- name: get version
22+
id: version
23+
uses: notiz-dev/github-action-json-property@release
24+
with:
25+
path: 'plugin.json'
26+
prop_path: 'Version'
27+
- run: echo ${{steps.version.outputs.prop}}
28+
- name: Restore
29+
run: |
30+
dotnet restore
31+
- name: Build
32+
run: |
33+
dotnet publish -c Release -r win-x64 --no-self-contained Flow.Launcher.Plugin.KubernetesContextSwitcher.csproj
34+
7z a -tzip "Flow.Launcher.Plugin.KubernetesContextSwitcher.zip" "./bin/Release/win-x64/publish/*"
35+
- name: Publish
36+
uses: softprops/action-gh-release@v2
37+
with:
38+
files: "Flow.Launcher.Plugin.KubernetesContextSwitcher.zip"
39+
tag_name: "v${{steps.version.outputs.prop}}"
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net7.0-windows7.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<AssemblyName>Flow.Launcher.Plugin.KubernetesContextSwitcher</AssemblyName>
8+
<RootNamespace>Flow.Launcher.Plugin.KubernetesContextSwitcher</RootNamespace>
9+
<Version>1.0.1</Version>
10+
<Authors>Robin Hermann</Authors>
11+
<Description>A Flow Launcher plugin to switch Kubernetes contexts quickly</Description>
12+
<PackageId>Flow.Launcher.Plugin.KubernetesContextSwitcher</PackageId>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Include="Flow.Launcher.Plugin" Version="4.6.0" />
17+
</ItemGroup>
18+
19+
</Project>

0 commit comments

Comments
 (0)