Commit 1bc9cfa 1 parent 9889754 commit 1bc9cfa Copy full SHA for 1bc9cfa
File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,8 @@ echo "$GH_PACKAGE"
12
12
13
13
# use TCVERSION and ARCH parameters to get real exit code.
14
14
make TCVERSION=${GH_ARCH##* -} ARCH=${GH_ARCH%% -* } -C spk/${GH_PACKAGE}
15
+
16
+ # publish to synocommunity.com when the API key is set
17
+ if [-n $API_KEY ]; then
18
+ make TCVERSION=${GH_ARCH##* -} ARCH=${GH_ARCH%% -* } publish -C spk/${GH_PACKAGE}
19
+ fi
Original file line number Diff line number Diff line change 82
82
env :
83
83
# https://github.com/SynoCommunity/spksrc/wiki/Compile-and-build-rules
84
84
GH_ARCH : ${{ matrix.arch }}
85
- # API_KEY: ${{ secrets.PUBLISH_API_KEY }}
85
+ API_KEY : ${{ secrets.PUBLISH_API_KEY }}
86
86
BUILD_ERROR_FILE : /github/workspace/build_errors.txt
87
87
BUILD_UNSUPPORTED_FILE : /github/workspace/build_unsupported.txt
88
88
BUILD_SUCCESS_FILE : /github/workspace/build_success.txt
@@ -109,7 +109,9 @@ jobs:
109
109
release :
110
110
needs : build
111
111
name : Release
112
- if : startsWith(github.ref, 'refs/tags/')
112
+ # # Build a github release on a git tag with the format 'packagename-version'
113
+ # # But don't make a github release when the PUBLISH_API_KEY is set.
114
+ if : startsWith(github.ref, 'refs/tags/') && secrets.PUBLISH_API_KEY == ''
113
115
runs-on : ubuntu-latest
114
116
steps :
115
117
- name : Download build artifacts
You can’t perform that action at this time.
0 commit comments