-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.29 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
name: Kodi Addon Release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v4.3.0
jobs:
release:
runs-on: ubuntu-latest
name: Kodi Addon Release
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Prepare file release
run: |
mkdir script.autoruns
wget ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/archive/refs/tags/${{ github.ref_name }}.tar.gz -O - | tar xz --strip-components=1 -C script.autoruns
rm -rf script.autoruns/.github script.autoruns/README.md
zip -r -9 script.autoruns-${{ github.ref_name }}.zip script.autoruns
- name: Generate changelog
id: changelog
uses: metcalfc/changelog-generator@v4.3.0
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
name: Autoruns ${{ github.ref_name }}
tag: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changelog }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: script.autoruns-${{ github.ref_name }}.zip
artifactContentType: application/zip
artifactErrorsFailBuild: true