-
-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (50 loc) · 1.35 KB
/
build-Common.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build (Common)
on:
push:
paths:
- 'Common/**'
branches:
- 'master'
pull_request:
paths:
- 'Common/**'
types:
- opened
- synchronize
release:
types:
- created
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
# GitVersion
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Download Dalamud
run: |
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/${env:DALAMUD_BRANCH}/latest.zip -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\"
env:
DALAMUD_BRANCH: stg
- name: Build
run: dotnet build --configuration Release
working-directory: Common
- name: Publish
if: github.event_name != 'pull_request'
run: |
dotnet pack --configuration Release --include-source
dotnet nuget push bin\Release\*.symbols.nupkg `
--source https://api.nuget.org/v3/index.json `
--api-key ${{ secrets.NUGET_API_KEY }} `
--skip-duplicate
working-directory: Common