forked from m00nyONE/LibCustomNames
-
Notifications
You must be signed in to change notification settings - Fork 0
141 lines (132 loc) · 4.39 KB
/
Copy pathrelease.yaml
File metadata and controls
141 lines (132 loc) · 4.39 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
name: Release
on:
workflow_dispatch:
schedule:
# every sunday at 22:15am
- cron: "15 22 * * 0"
jobs:
check-for-changes:
uses: ./.github/workflows/_check-changes.yml
test-general:
if: needs.check-for-changes.outputs.has_changes == 'true'
uses: ./.github/workflows/_tests-general.yml
needs:
- check-for-changes
test-pc:
if: needs.check-for-changes.outputs.has_changes == 'true'
uses: ./.github/workflows/_tests-platform.yml
needs:
- check-for-changes
with:
NAMES_PATH: PC/names
test-console:
if: needs.check-for-changes.outputs.has_changes == 'true'
uses: ./.github/workflows/_tests-platform.yml
needs:
- check-for-changes
with:
NAMES_PATH: Console/names
create-addon-zip:
uses: ./.github/workflows/_create-zip.yml
needs:
- test-general
- test-pc
- test-console
create-release-notes:
uses: ./.github/workflows/_create-release-notes.yml
needs:
- test-general
- test-pc
- test-console
generate-docs:
if: github.repository_owner == 'm00nyONE'
uses: ./.github/workflows/_generate-docs.yml
permissions:
contents: write
needs:
- test-general
- test-pc
- test-console
create-github-release:
name: "Create Github Release"
runs-on: ubuntu-latest
permissions: write-all
needs:
- create-addon-zip
- create-release-notes
steps:
- name: Download ZIP Multi
uses: actions/download-artifact@v4
with:
name: ${{ needs.create-addon-zip.outputs.zip_multi }}
- name: Download ZIP PC
uses: actions/download-artifact@v4
with:
name: ${{ needs.create-addon-zip.outputs.zip_pc }}
- name: Download ZIP Console
uses: actions/download-artifact@v4
with:
name: ${{ needs.create-addon-zip.outputs.zip_console }}
- name: Download Release Notes
uses: actions/download-artifact@v4
with:
name: ${{ needs.create-release-notes.outputs.release_notes }}
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
name: "${{ needs.create-addon-zip.outputs.addon_version }}"
commit: ${{ github.ref }}
tag: "${{ needs.create-addon-zip.outputs.addon_version }}"
artifacts: "${{ needs.create-addon-zip.outputs.zip_multi }},${{ needs.create-addon-zip.outputs.zip_pc }},${{ needs.create-addon-zip.outputs.zip_console }}"
artifactContentType: application/zip
bodyFile: ${{ needs.create-release-notes.outputs.release_notes }}
allowUpdates: true
makeLatest: true
create-esoui-release:
name: "ESOUI Release"
runs-on: ubuntu-latest
if: github.repository_owner == 'm00nyONE'
needs:
- create-addon-zip
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Download ZIP PC
uses: actions/download-artifact@v4
with:
name: ${{ needs.create-addon-zip.outputs.zip_pc }}
- name: Upload to ESOUI
uses: m00nyONE/esoui-upload@main
with:
api_key: ${{ secrets.ESOUI_API_KEY }}
addon_id: ${{ vars.ESOUI_ADDON_ID }}
version: ${{ needs.create-addon-zip.outputs.addon_version }}
zip_file: ${{ needs.create-addon-zip.outputs.zip_pc }}
changelog_file: 'CHANGELOG.md'
description_file: 'README_ESOUI.bbcode'
create-bnet-release:
name: "BNET Release"
runs-on: ubuntu-latest
if: github.repository_owner == 'm00nyONE'
needs:
- create-addon-zip
- create-release-notes
steps:
- name: Download ZIP Console
uses: actions/download-artifact@v4
with:
name: ${{ needs.create-addon-zip.outputs.zip_console }}
- name: Download Release Notes
uses: actions/download-artifact@v4
with:
name: ${{ needs.create-release-notes.outputs.release_notes }}
- name: Upload to BNET
uses: m00nyONE/bnet-upload@main
with:
BNET_USERNAME: ${{ secrets.BNET_USERNAME }}
BNET_PASSWORD: ${{ secrets.BNET_PASSWORD }}
addon_id: ${{ vars.BNET_ADDON_ID }}
version: ${{ needs.create-addon-zip.outputs.addon_version }}
zip_file: ${{ needs.create-addon-zip.outputs.zip_console }}
release_notes_file: ${{ needs.create-release-notes.outputs.release_notes }}
concurrency: '5'