forked from Dymerz/StarCitizen-Localization
-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (35 loc) · 883 Bytes
/
build.yaml
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
name: Releases
on:
push:
tags:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Zip all locales
working-directory: ./data
run: zip -r Localization.zip . -i "Localization/*"
- name: Zip each locales
working-directory: ./data
run: |
for file in $(find Localization/ -name '*.ini'); do
dir=$(dirname "$file")
filename=$(basename "$file")
foldername=$(basename "$dir")
zip -j "$foldername.zip" "$file"
done
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
data/*.zip
tools/*.cmd
tools/*.ps1
draft: true