-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (34 loc) · 1.18 KB
/
update-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
name: Update release
on:
release:
types:
- published
workflow_run:
workflows:
- Sync localization
types:
- completed
jobs:
update-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build target packages
run: |
mkdir output
for branch in REL1_35 REL1_39 REL1_40
do
git checkout $branch
mkdir EditCountNeue
echo $"$(printf "EditCountNeue: %s\n%s\n\n%s" $branch "$(date -u -d $(git show -s --format=%cI) +%FT%T)" $(git show -s --format=%h))" | tee version
cp -r i18n src composer.json EditCount.i18n.alias.php EditCount.i18n.magic.php extension.json LICENSE README.md version EditCountNeue
tar -czf output/EditCountNeue-$branch.tar.gz EditCountNeue
zip -q -r output/EditCountNeue-$branch.zip EditCountNeue
rm -r EditCountNeue
done
- name: update release
run: gh release upload $(git describe --tags $(git rev-list --tags --max-count=1)) $(find ./output -type f -printf "%p ") --clobber
env:
GH_TOKEN: ${{ github.token }}