-
Notifications
You must be signed in to change notification settings - Fork 0
139 lines (119 loc) · 4.33 KB
/
create-release.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
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
name: json-yaml-validate
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate Boss Yaml Files
id: json-yaml-validate-bosses
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/bosses.json
yamlFiles: Profiles/**/bosses*.yml
- name: Validate Dungeon Yaml Files
id: json-yaml-validate-dungeons
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/dungeons.json
yamlFiles: Profiles/**/dungeons*.yml
- name: Validate Game Yaml Files
id: json-yaml-validate-game
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/game.json
yamlFiles: Profiles/**/game*.yml
- name: Validate Hint Tile Yaml Files
id: json-yaml-validate-hint-tiles
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/hint_tiles.json
yamlFiles: Profiles/**/hint_tiles*.yml
- name: Validate Item Yaml Files
id: json-yaml-validate-items
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/items.json
yamlFiles: Profiles/**/items*.yml
- name: Validate Location Yaml Files
id: json-yaml-validate-locations
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/locations.json
yamlFiles: Profiles/**/locations*.yml
- name: Validate MSU Yaml Files
id: json-yaml-validate-msu
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/msu.json
yamlFiles: Profiles/**/msu*.yml
- name: Validate Region Yaml Files
id: json-yaml-validate-regions
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/regions.json
yamlFiles: Profiles/**/regions*.yml
- name: Validate Request Yaml Files
id: json-yaml-validate-requests
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/requests.json
yamlFiles: Profiles/**/requests*.yml
- name: Validate Response Yaml Files
id: json-yaml-validate-responses
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/responses.json
yamlFiles: Profiles/**/responses*.yml
- name: Validate Reward Yaml Files
id: json-yaml-validate-rewards
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/rewards.json
yamlFiles: Profiles/**/rewards*.yml
- name: Validate Rooms Yaml Files
id: json-yaml-validate-rooms
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/rooms.json
yamlFiles: Profiles/**/rooms*.yml
- name: Validate UI Yaml Files
id: json-yaml-validate-ui
uses: thiagodnf/[email protected]
with:
jsonSchemaFile: Schemas/ui.json
yamlFiles: Profiles/**/ui*.yml
- name: Get Tag
if: ${{ github.event_name != 'pull_request' }}
id: get-tag
shell: pwsh
run: |
$time = (Get-Date).ToString("yyyyMMddHHmm")
Write-Host "tag=v$time"
Write-Output "tag=v$time" >> $env:GITHUB_OUTPUT
- name: Upload artifact
if: ${{ github.event_name != 'pull_request' }}
uses: actions/upload-artifact@v3
with:
path: Profiles/**
name: SMZ3CasProfiles_${{ steps.get-tag.outputs.tag }}
- name: Install zip
if: ${{ github.event_name != 'pull_request' }}
uses: montudor/action-zip@v1
- name: Zip output
if: ${{ github.event_name != 'pull_request' }}
run: zip -qq -r SMZ3CasProfiles_${{ steps.get-tag.outputs.tag }}.zip *
working-directory: Profiles
- uses: ncipollo/release-action@v1
if: ${{ github.event_name != 'pull_request' }}
with:
artifacts: "Profiles/SMZ3CasProfiles_${{ steps.get-tag.outputs.tag }}.zip"
tag: ${{ steps.get-tag.outputs.tag }}
omitBody: true