diff --git a/.github/builds/ci.yml b/.github/builds/ci.yml
new file mode 100644
index 0000000..6113750
--- /dev/null
+++ b/.github/builds/ci.yml
@@ -0,0 +1,46 @@
+name: CI
+on: [push]
+
+jobs:
+ build:
+ name: Build
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: 6.0
+
+ - name: Build
+ run: |
+ dotnet publish -r win-x64 -c Release --no-self-contained -p:PublishDir=../publish/win-x64
+ mv publish/win-x64/Kiseki.Launcher.Windows.exe publish/win-x64/Kiseki.Launcher.exe
+ mv publish/win-x64/Kiseki.Launcher.Windows.pdb publish/win-x64/Kiseki.Launcher.pdb
+
+ - name: Upload
+ uses: actions/upload-artifact@v3
+ with:
+ name: win-x64
+ path: publish/win-x64/*
+
+ release:
+ needs: build
+ runs-on: ubuntu-latest
+ if: startsWith(github.ref, 'refs/tag/v')
+
+ steps:
+ - name: Download release artifacts
+ uses: actions/download-artifact@v3
+ with:
+ path: x64
+
+ - name: Rename artifacts
+ run: mv x64/win-x64.zip Kiseki.Launcher-v${{ github.ref_name }}_win-x64.zip
+
+ - name: Create release draft
+ uses: softprops/action-gh-release@v1
+ with:
+ name: ${{ github.ref_name }}
+ files: Kiseki.Launcher-v${{ github.ref_name }}_win-x64.zip
+ draft: true
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index c190a4b..2d42812 100644
--- a/.gitignore
+++ b/.gitignore
@@ -189,7 +189,7 @@ publish/
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
-# *.pubxml
+*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
diff --git a/Kiseki.Launcher.Windows/Kiseki.Launcher.Windows.csproj b/Kiseki.Launcher.Windows/Kiseki.Launcher.Windows.csproj
index 1576251..f2b8ff8 100644
--- a/Kiseki.Launcher.Windows/Kiseki.Launcher.Windows.csproj
+++ b/Kiseki.Launcher.Windows/Kiseki.Launcher.Windows.csproj
@@ -4,6 +4,7 @@
WinExe
net6.0-windows
enable
+ true
true
Resources\IconKiseki.ico
enable
diff --git a/Kiseki.Launcher.Windows/Properties/PublishProfiles/Build.pubxml b/Kiseki.Launcher.Windows/Properties/PublishProfiles/Build.pubxml
deleted file mode 100644
index eb27640..0000000
--- a/Kiseki.Launcher.Windows/Properties/PublishProfiles/Build.pubxml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
- Release
- Any CPU
- ..\build\win-x64\
- FileSystem
- <_TargetId>Folder
- net6.0-windows
- win-x64
- false
- true
- false
-
-
\ No newline at end of file