-
-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (35 loc) · 1.06 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build
# Put your personal access token in a repository secret named PAT for cross-repository access
on:
workflow_dispatch:
push:
branches:
- main
env:
INTERNAL_NAME: InventoryTools
CONFIGURATION: Release
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1.3
- 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: Restore
run: dotnet restore -r win
- name: Build
run: dotnet build -c ${{ env.CONFIGURATION }} --no-restore ${{ env.INTERNAL_NAME }}
- name: Push artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: |
InventoryTools/bin/Release/InventoryTools