This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
83 lines (69 loc) · 2.09 KB
/
release-interlude.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
81
82
83
name: Release Interlude
on:
push:
branches: [ "main" ]
paths: "docs/changelog-latest.md"
workflow_dispatch:
# for debug purposes
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: percyqaz/Percyqaz.Common
path: Percyqaz.Common
- uses: actions/checkout@v3
with:
repository: percyqaz/Percyqaz.Shell
path: Percyqaz.Shell
- uses: actions/checkout@v3
with:
repository: percyqaz/Percyqaz.Flux
path: Percyqaz.Flux
- uses: actions/checkout@v3
with:
repository: YAVSRG/Prelude
path: Prelude
- uses: actions/checkout@v3
with:
repository: YAVSRG/Interlude.Web
path: Interlude.Web
- uses: actions/checkout@v3
with:
path: Interlude
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Package Interlude
id: package
run: |
cd Interlude/tools
dotnet run -- release_win64
echo "VERSION=v$(dotnet run -- version)" >> $GITHUB_OUTPUT
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "Interlude/releases/*.zip"
bodyFile: "Interlude/docs/changelog-latest.md"
token: ${{ secrets.GITHUB_TOKEN }}
owner: YAVSRG
repo: Interlude
tag: ${{ steps.package.outputs.VERSION }}
commit: main
- name: Read changelog contents
id: read_file
uses: andstor/file-reader-action@v1
with:
path: "Interlude/docs/changelog-latest.md"
- name: Post Changelog via Webhook
uses: tsickert/discord-webhook@v5.3.0
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
content: |
**New update released!** <@&1147134372504408095>
```
${{ steps.read_file.outputs.contents }}
```
Update ingame or [download Interlude from GitHub](https://github.com/YAVSRG/Interlude/releases/latest/download/Interlude-win64.zip)