This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 133
80 lines (69 loc) · 2.59 KB
/
release-please.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
name : releasePlz
if : ${{ startsWith(github.event.head_commit.message, 'chore:') || (startsWith(github.event.head_commit.message, 'Merge pull request') && contains(github.event.head_commit.message, 'release-please'))}}
runs-on: ubuntu-latest
outputs:
released: ${{ steps.rp.outputs.releases_created }}
upload_url: ${{ steps.rp.outputs.upload_url }}
steps:
- id: rp
uses: googleapis/release-please-action@v4
with:
release-type: simple
build:
name : build
needs: release-please
if: ${{ needs.release-please.outputs.released }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.PAT }}
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- 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 Plugin
run: |
invoke-expression 'dotnet build /p:DebugType=None /p:GenerateDocumentationFile=false --no-restore --configuration Release RotationSolver.SourceGenerators'
invoke-expression 'dotnet build /p:DebugType=None /p:GenerateDocumentationFile=false --no-restore --configuration Release RotationSolver'
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
path: .\RotationSolver\bin\Release\net8.0-windows\RotationSolver\
release:
name: release
needs: [release-please, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download Build Artifact
uses: actions/download-artifact@v3
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release-please.outputs.upload_url }}
asset_path: artifact/latest.zip
asset_name: latest.zip
asset_content_type: application/zip
- name: Trigger Repo Update
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PAT }}
repository: ${{ github.repository_owner }}/DalamudPlugins
event-type: new-release