This repository has been archived by the owner on May 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (51 loc) · 1.94 KB
/
cd.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
name: Publish package to GitHub Packages
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
assets:
# analysers:
- analyser_diff_changes/build/libs/analyser_diff_changes*-all.jar
- analyser_git/build/libs/analyser_git*-all.jar
- analyser_sca/build/libs/analyser_sca*-all.jar
- analyser_sourcecode/feat_apicalls/build/libs/feat_apicalls*-all.jar
- analyser_sourcecode/feat_datamap/build/libs/feat_datamap*-all.jar
- analyser_sourcecode/lang_csharp/build/libs/lang_csharp*-all.jar
- analyser_sourcecode/lang_golang/build/libs/lang_golang*-all.jar
- analyser_sourcecode/lang_java/build/libs/lang_java*-all.jar
- analyser_sourcecode/lang_kotlin/build/libs/lang_kotlin*-all.jar
- analyser_sourcecode/lang_python/build/libs/lang_python*-all.jar
- analyser_sourcecode/lang_scala/build/libs/lang_scala*-all.jar
- analyser_sourcecode/lang_typescript/build/libs/lang_typescript*-all.jar
# cli:
- scanner_cli/build/libs/scanner_cli*-all.jar
# rules:
- rule-linter/rule-sql/build/libs/rule-sql*.jar
- rule-linter/rule-webapi/build/libs/rule-webapi*.jar
- rule-linter/rule-test-code/build/libs/rule-test-code*.jar
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew build
- name: Upload asserts to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.assets }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true