Skip to content

v0.4.2

v0.4.2 #5

Workflow file for this run

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
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
tar -czvf output/EditCountNeue-$branch.tar.gz i18n src composer.json EditCount.i18n.alias.php EditCount.i18n.magic.php extension.json LICENSE README.md version
zip output/EditCountNeue-$branch.zip -r i18n src composer.json EditCount.i18n.alias.php EditCount.i18n.magic.php extension.json LICENSE README.md version
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 }}