This repository was archived by the owner on Jul 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
85 lines (70 loc) · 2.1 KB
/
Copy pathbuild.yml
File metadata and controls
85 lines (70 loc) · 2.1 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Build
on:
workflow_dispatch:
push:
branches: [main]
tags:
- '*'
pull_request:
branches: [main]
env:
PROJECT_NAME: HeelsPlugin
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.0.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: Build
run: |
dotnet restore
dotnet build --configuration Release --nologo --output bin/
env:
DOTNET_CLI_TELEMETRY_OUTPUT: true
- name: Create artifact
run: |
Compress-Archive -Path "bin/*" -DestinationPath HeelsPlugin.zip
- name: Upload artifact
uses: actions/upload-artifact@v2.2.1
with:
name: PluginZip
path: HeelsPlugin.zip
if-no-files-found: error
release:
needs: build
runs-on: windows-latest
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
steps:
- name: Checkout repo
uses: actions/checkout@v2.2.0
with:
fetch-depth: 0
- name: Download artifact
uses: actions/download-artifact@v2
id: download
with:
name: PluginZip
- name: Get tag name
id: tag
uses: WyriHaximus/github-action-get-previous-tag@v1
- name: Create release
uses: softprops/action-gh-release@v1
with:
name: ${{ env.PROJECT_NAME }} ${{ steps.tag.outputs.tag }}
tag_name: ${{ steps.tag.outputs.tag }}
body: ${{ github.events.commits[0].message }}
files: ./HeelsPlugin.zip
- name: Trigger plugin repo update
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PAT }}
repository: LeonBlade/DalamudPlugins
event-type: new-release