roll back to v0.1.7 age scheme #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Zip and Release | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: get addon version | |
run: | | |
ver=`cat addon.xml |grep -oP 'name="ZiMuKuX" version="\K[^"]*'` | |
echo ZIMUKUX_VER=$ver >> $GITHUB_ENV | |
- uses: mukunku/[email protected] | |
id: checkTag | |
with: | |
tag: v${{ env.ZIMUKUX_VER }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_FOR_ACTIONS }} | |
- name: zip it | |
if: ${{ steps.checkTag.outputs.exists == 'false' }} | |
run: | | |
for file in .[^.]*; do rm -rf "$file"; done | |
cd .. | |
mv zimuku_for_kodi/ script.subtitles.zimukux/ | |
zip -r -qq script.subtitles.zimukux-${{ env.ZIMUKUX_VER }}.zip script.subtitles.zimukux/ | |
mv script.subtitles.zimukux-${{ env.ZIMUKUX_VER }}.zip script.subtitles.zimukux/ | |
mv script.subtitles.zimukux/ zimuku_for_kodi/ | |
cd zimuku_for_kodi | |
sed -e '/^$/,$d' CHANGES > changelog.txt | |
- name: release | |
if: ${{ steps.checkTag.outputs.exists == 'false' }} | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: v${{ env.ZIMUKUX_VER }} | |
commit: main | |
bodyFile: changelog.txt | |
artifacts: script.subtitles.zimukux-${{ env.ZIMUKUX_VER }}.zip | |
token: ${{ secrets.PAT_FOR_ACTIONS }} |