-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (38 loc) · 1.11 KB
/
build-release.yaml
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
on:
push:
tags:
- 'v*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v1
- name: Set addon version
run: sed --in-place '/<addon/ s/version="[^"]*"/version="'${GITHUB_REF##*/v}'"/' addon.xml
- name: Create addon zip
run: |
mkdir -p /tmp/plugin.video.stash
rsync -a --exclude 'resources/stash_logo.svg' addon.xml addon.py resources /tmp/plugin.video.stash
cd /tmp/
zip -r plugin.video.stash.zip plugin.video.stash/
- name: Upload
uses: actions/upload-artifact@v3
with:
name: plugin.video.stash.zip
path: /tmp/plugin.video.stash.zip
release:
name: Release
runs-on: ubuntu-latest
needs: ['build']
steps:
- uses: actions/download-artifact@v3
with:
name: plugin.video.stash.zip
- uses: marvinpinto/[email protected]
with:
repo_token: ${{ secrets.RELEASE_TOKEN }}
prerelease: false
files: |
plugin.video.stash.zip