Skip to content

v0.4.3

v0.4.3 #7

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
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 }}