Skip to content

Chore: update trailer title template (#28) #21

Chore: update trailer title template (#28)

Chore: update trailer title template (#28) #21

Workflow file for this run

name: Publish Plex Plug-in Bundle
concurrency:
group: release-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/release.yml'
- 'Contents/**'
jobs:
bundle:
name: Bundle
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate Version
id: shell
run: |
echo "commit=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "version=$(date -u '+%Y.%-m%d.%-H%M.0')" >> $GITHUB_OUTPUT
- name: Make bundle
run: |
echo v${{ steps.shell.outputs.version }}-${{ steps.shell.outputs.commit }} | tee VERSION
mkdir -p MetaTube.bundle/
mv LICENSE MetaTube.bundle/
mv VERSION MetaTube.bundle/
mv Contents/ MetaTube.bundle/
zip -r MetaTube.bundle.zip MetaTube.bundle/
- name: Upload Releases
uses: softprops/action-gh-release@v1
with:
files: MetaTube.bundle.zip
body: _Auto Released by GitHub Actions_
name: v${{ steps.shell.outputs.version }}
tag_name: bundle
draft: false
prerelease: false