-
Notifications
You must be signed in to change notification settings - Fork 80
57 lines (48 loc) · 1.74 KB
/
generate-soh-archive.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
name: Generate SoH Archive
on:
push:
branches: [ "Custom-Music-2.0" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate SoH archive
run: |
cd data
find . -type f -name '*.ootrs' | while read filename; do unzip -o -d "./Music/`basename -s .ootrs "$filename"`" "$filename"; done;
wget https://github.com/leggettc18/SequenceOTRizer/releases/download/v0.4/SequenceOTRizer-0.2-Linux.tar.gz
tar -xzvf SequenceOTRizer-0.2-Linux.tar.gz
./SequenceOTRizer --seq-path Music --otr-name daruniasjoy
- name: Upload generated daruniasjoy.otr
uses: actions/upload-artifact@v4
with:
name: daruniasjoy.otr
path: data/mods
- name: List all releases
run: |
releases=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/releases)
echo "$releases" | jq -r '.[].id' > release_ids.txt
- name: Delete all releases
run: |
while IFS= read -r release_id; do
curl -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/releases/$release_id
done < release_ids.txt
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: latest
draft: false
prerelease: false
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: data/mods/daruniasjoy.otr
tag_name: latest
name: Ship of Harkinian Bundle