forked from ShadowBlip/OpenGamepadUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.releaserc.yaml
59 lines (52 loc) · 2.08 KB
/
.releaserc.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Semantic Release Configuration
# https://semantic-release.gitbook.io/semantic-release/usage/configuration
# Any merges into branches that match these patterns will trigger a release.
branches:
- name: main
#- name: 'v+([0-9])?(.{+([0-9]),x}).x'
# These plugins will run when a release is triggered. They will analyze commit
# messages to determine what kind of release this is and publish a new release.
plugins:
# Analyze commit messages to determine next version
- "@semantic-release/commit-analyzer"
# Generate release notes
- "@semantic-release/release-notes-generator"
# Replace version strings in the project. The 'git' plugin is needed to
# commit the version strings to the repository.
- - "@google/semantic-release-replace-plugin"
- replacements:
- files:
- core/global/version.tres
from: "core = .*"
to: 'core = "${nextRelease.version}"'
#results:
# - file: core/global/version.tres
# hasChanged: true
# numMatches: 1
# numReplacements: 1
#countMatches: true
- files:
- package/rpm/opengamepadui.spec
from: "Version: .*"
to: "Version: ${nextRelease.version}"
# Commit the following changes to git after other plugins have run
- - "@semantic-release/git"
- assets:
- core/global/version.tres
- package/rpm/opengamepadui.spec
# Execute commands to build the project
- - "@semantic-release/exec"
- shell: true
prepareCmd: "make in-docker IMAGE_TAG=4.2.2 TARGET='force-import dist'"
# Publish artifacts as a GitHub release
- - "@semantic-release/github"
- assets:
- path: dist/opengamepadui-*.rpm
- path: dist/opengamepadui-*.rpm.sha256.txt
- path: dist/opengamepadui.raw
- path: dist/opengamepadui.raw.sha256.txt
- path: dist/opengamepadui.tar.gz
- path: dist/opengamepadui.tar.gz.sha256.txt
- path: dist/update.zip
- path: dist/update.zip.sha256.txt
- path: docs/install/opengamepadui_deck_installer.desktop