forked from DBuit/custom-sonos-card
-
-
Notifications
You must be signed in to change notification settings - Fork 23
42 lines (36 loc) · 1.1 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
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v5
with:
failOnError: true
commitMode: true
configuration: ".release-notes-config.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
npm install
npm run build
- name: Create Release (Sonos)
uses: softprops/action-gh-release@v2
with:
body: ${{steps.build_changelog.outputs.changelog}}
prerelease: true
files: "${{ github.workspace }}/dist/custom-sonos-card.js"
- name: Create Release (Mxmp)
uses: softprops/action-gh-release@v2
with:
body: ${{steps.build_changelog.outputs.changelog}}
repository: punxaphil/maxi-media-player
prerelease: true
token: ${{ secrets.PAT_TOKEN }}
files: "${{ github.workspace }}/dist-maxi-media-player/maxi-media-player.js"