diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f4dd9ea --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Build Plugin +on: [push] + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v1 + - name: Setup Nuget + uses: nuget/setup-nuget@v1 + with: + nuget-version: 'latest' + - name: Restore Nuget Packages + run: nuget restore ACT_DiscordTriggers.sln + - name: Download ACT Binaries + shell: powershell + run: | + Invoke-WebRequest https://advancedcombattracker.com/includes/page-download.php?id=57 -OutFile packages/act.zip + Expand-Archive -Path packages/act.zip -DestinationPath packages + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v1 + - name: Build + run: msbuild ACT_DiscordTriggers.sln -p:Configuration=Release + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: ACT_DiscordTriggers-Prerelease + path: './ACT_DiscordTriggers/bin/Release/net462/ACT_DiscordTriggers.dll' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 4014428..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: CI - -on: [push] - -jobs: - build: - - runs-on: windows-latest - - steps: - - uses: actions/checkout@v1 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.201 - - name: Restore NuGet Packages - run: dotnet restore - - name: Download ACT Binaries - uses: carlosperate/download-file-action@v1.0.3 - with: - file-url: 'https://advancedcombattracker.com/includes/page-download.php?id=57' - file-name: 'act.zip' - location: './packages' - - name: Extract ACT Binaries - uses: DuckSoft/extract-7z-action@v1.0 - with: - pathSource: './packages/act.zip' - pathTarget: './packages/' - - name: Setup MSBuild - uses: microsoft/setup-msbuild@v1 - - name: Build - run: msbuild ACT_DiscordTriggers.sln -p:Configuration=Release - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: ACT_DiscordTriggers-Prerelease - path: './ACT_DiscordTriggers/bin/Release/net462/ACT_DiscordTriggers.dll'