Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Sample github-action #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -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 Release

- 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