-
-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (43 loc) · 1.63 KB
/
build.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
name: Package builds (automatic)
on:
workflow_dispatch:
push:
jobs:
# Build and attach package
package:
name: 'Build Package'
runs-on: windows-latest
steps:
- name: 'Debounce 5 minutes'
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: zachary95/[email protected]
with:
wait: 300
- name: 'Checkout'
uses: thaitype/actions-switch-case@v1
id: package
with:
default: '0'
conditionals-with-values: |
${{ 'World-Map-SMP' == github.event.repository.name }} => '1'
${{ 'Playlist-Manager-SMP' == github.event.repository.name }} => '2'
${{ 'Not-a-Waveform-Seekbar-SMP' == github.event.repository.name }} => '3'
${{ 'Timeline-SMP' == github.event.repository.name }} => '4'
- uses: actions/[email protected]
if: ${{ steps.package.outputs.match != '0' }}
- name: 'Create package'
if: ${{ steps.package.outputs.match != '0' }}
run: ./_createPackage.bat ${{ steps.package.outputs.match }}
- name: 'Upload Artifact'
if: ${{ steps.package.outputs.match != '0' }}
uses: actions/upload-artifact@v4
with:
name: file
path: 'packages/*.zip'
retention-days: 90
- name: 'No package associated to repository'
if: ${{ steps.package.outputs.match == '0' }}
run: echo 'No package associated'
- name: 'Download the file (at artifacts) and extract the package'
if: ${{ steps.package.outputs.match != '0' }}
run: echo 'Download the file (at artifacts) and extract the package'