mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
35 lines
1 KiB
YAML
35 lines
1 KiB
YAML
name: .NET Build
|
|
|
|
on:
|
|
push:
|
|
branches: '*'
|
|
tags-ignore: '*'
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 6.0.100
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
- 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
|
|
run: |
|
|
dotnet build --no-restore --configuration Release --nologo
|
|
- name: Archive
|
|
run: Compress-Archive -Path Penumbra/bin/Release/net5.0-windows/* -DestinationPath Penumbra.zip
|
|
- name: Upload a Build Artifact
|
|
uses: actions/upload-artifact@v2.2.1
|
|
with:
|
|
path: |
|
|
./Penumbra/bin/Release/net5.0-windows/*
|