From ebbc9a5ef92fb99108fd9951222d06c5db3e6293 Mon Sep 17 00:00:00 2001 From: MoogleTroupe <69164391+troy-f@users.noreply.github.com> Date: Sat, 14 Jan 2023 23:00:31 -0500 Subject: [PATCH 1/2] Create Sample github-action --- .github/workflows/pr-build.yml | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/pr-build.yml diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml new file mode 100644 index 0000000..e49058c --- /dev/null +++ b/.github/workflows/pr-build.yml @@ -0,0 +1,39 @@ +name: Sample PR Builder for SamplePlugin + +on: + pull_request: + branches: [ master ] + +jobs: + + build: + runs-on: windows-2022 + + env: + Solution_Name: SamplePlugin + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 7.0.x + + - name: Download Dalamud + run: | + Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip + Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev" + + - name: Build with dotnet + run: dotnet build --configuration Debug + + - name: Store artifacts + uses: actions/upload-artifact@v3 + with: + name: SamplePlugin + path: .\SamplePlugin\bin\x64\Release\SamplePlugin\* + if-no-files-found: error + retention-days: 1 + From 00015ce94c86ac0bf0d8999817c4db2b0de22097 Mon Sep 17 00:00:00 2001 From: troy-f <69164391+troy-f@users.noreply.github.com> Date: Sat, 14 Jan 2023 23:05:52 -0500 Subject: [PATCH 2/2] Update pr-build.yml --- .github/workflows/pr-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index e49058c..fafd926 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -27,7 +27,7 @@ jobs: Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev" - name: Build with dotnet - run: dotnet build --configuration Debug + run: dotnet build --configuration Release - name: Store artifacts uses: actions/upload-artifact@v3