Skip to content

Commit 380ab22

Browse files
committed
Initial commit
0 parents  commit 380ab22

63 files changed

Lines changed: 1209 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "nuget"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/workflows/dotnet.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: .NET Build and Release
2+
permissions:
3+
contents: write
4+
5+
on:
6+
push:
7+
branches: [ "master" ]
8+
pull_request:
9+
branches: [ "master" ]
10+
workflow_dispatch:
11+
12+
jobs:
13+
build-windows:
14+
name: Build on Windows
15+
runs-on: windows-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
20+
- name: Setup .NET
21+
uses: actions/setup-dotnet@v5
22+
with:
23+
dotnet-version: 10.0.x
24+
25+
- name: Build for Windows
26+
run: |
27+
dotnet publish --runtime win-x64 -c Release -o "output/win-x64"
28+
29+
- name: Upload Windows Artifact
30+
uses: actions/upload-artifact@v7
31+
with:
32+
name: win-x64-artifact
33+
path: output/win-x64/koji-stream-player.exe
34+
35+
build-macos:
36+
name: Build on macOS
37+
runs-on: macos-latest
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v6
41+
42+
- name: Setup .NET
43+
uses: actions/setup-dotnet@v5
44+
with:
45+
dotnet-version: 10.0.x
46+
47+
- name: Build for macOS
48+
run: |
49+
dotnet publish --runtime osx-arm64 -c Release -o "output/osx-arm64"
50+
51+
- name: Ad-hoc Code Signing
52+
run: |
53+
codesign --deep --force --verify --sign - output/osx-arm64/koji-stream-player
54+
55+
- name: Upload macOS Artifact
56+
uses: actions/upload-artifact@v7
57+
with:
58+
name: osx-arm64-artifact
59+
path: output/osx-arm64/koji-stream-player
60+
61+
create-release:
62+
name: Create GitHub Release and Upload Artifacts
63+
if: github.event_name == 'push' && github.actor == 'mg0x7BE'
64+
runs-on: ubuntu-latest
65+
needs: [build-windows, build-macos]
66+
steps:
67+
- name: Download Windows Artifact
68+
uses: actions/download-artifact@v8
69+
with:
70+
name: win-x64-artifact
71+
path: output/win-x64/
72+
73+
- name: Download macOS Artifact
74+
uses: actions/download-artifact@v8
75+
with:
76+
name: osx-arm64-artifact
77+
path: output/osx-arm64/
78+
79+
- name: Create GitHub Release and Upload Artifacts
80+
uses: softprops/action-gh-release@v3
81+
with:
82+
tag_name: "latest-${{ github.sha }}"
83+
name: "Auto-release"
84+
files: |
85+
output/win-x64/koji-stream-player.exe
86+
output/osx-arm64/koji-stream-player
87+
env:
88+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)