-
-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (45 loc) · 1.39 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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'
- '*.bundle/**'
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
cp LICENSE MetaTube.bundle/
cp VERSION MetaTube.bundle/
cp LICENSE MetaTubeHelper.bundle/
cp VERSION MetaTubeHelper.bundle/
zip -r MetaTube.bundle.zip MetaTube.bundle/
zip -r MetaTubeHelper.bundle.zip MetaTubeHelper.bundle/
- name: Upload Releases
uses: softprops/action-gh-release@v1
with:
files: |
MetaTube.bundle.zip
MetaTubeHelper.bundle.zip
body: _Auto Released by GitHub Actions_
name: v${{ steps.shell.outputs.version }}
tag_name: bundle
draft: false
prerelease: false