Skip to content

Merge subtitles

Merge subtitles #3

Workflow file for this run

name: Merge subtitles
on:
workflow_dispatch:
inputs:
tag:
description: 'which tag to upload to'
default: ''
permissions:
contents: write
env:
show: Nisemonogatari
jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'zulu'
cache: gradle
- name: Merge subtitle
run: |
for episode in {01..11}; do
./gradlew merge.${episode}
mv "${episode}/Nise ${episode} - Merged.ass" "fonts/"
done
mv OP-ED/* "fonts/"
- name: Compress
run: |
cd fonts
7za a -t7z -mx=7 "../${{env.show}} - ${{github.event.inputs.tag}}.7z" *
- name: Upload
uses: actions/upload-artifact@v3
with:
name: ${{env.show}}
path: ${{env.show}} - ${{github.event.inputs.tag}}.7z
- name: Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag != ''
with:
tag_name: ${{ github.event.inputs.tag }}
files: ${{env.show}} - ${{github.event.inputs.tag}}.7z
fail_on_unmatched_files: true
generate_release_notes: false
prerelease: true