@@ -20,18 +20,26 @@ jobs:
20
20
outputs :
21
21
old_version : ${{ steps.bumpversion.outputs.old_ver }}
22
22
version : ${{ steps.bumpversion.outputs.new_ver }}
23
+ app_name : ${{ steps.appinfo.outputs.app_name }}
23
24
# Validate bump part before moving forward
24
25
if : contains(['major', 'minor', 'patch'], ${{ github.event.inputs.bumpPart }})
25
26
steps :
26
27
- name : Checkout source
27
28
uses : actions/checkout@v2
29
+
30
+ - name : Fetch and set app info
31
+ id : appinfo
32
+ run : |
33
+ APP_NAME=$(cat app.manifest | jq -r '.info.id.name' | tr _ - )
34
+ echo "::set-output name=app_name::${APP_NAME}"
28
35
29
36
- name : Bump version and push tag
30
37
id : bumpversion
31
38
32
39
env :
33
40
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
41
DEFAULT_BUMP : ${{ github.event.inputs.bumpPart }}
42
+
35
43
- name : Push tags
36
44
run : |
37
45
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
@@ -45,15 +53,19 @@ jobs:
45
53
- name : Checkout code
46
54
uses : actions/checkout@v2
47
55
56
+ - name : Excluding images from README
57
+ run : |
58
+ sed -i '/^!/d' README.md
59
+
48
60
- name : Bundle app source
49
61
run : |
50
62
mkdir dist
51
- tar -zcvf dist/splunk-plotly-collection-viz- ${{ needs.tag-version.outputs.version }}.tar.gz --exclude=.git* --exclude=./dist .
63
+ tar -zcvf dist/${{ needs.tag-version.outputs.app_name }}- ${{ needs.tag-version.outputs.version }}.tar.gz --exclude='.[^/]*' --exclude=./dist .
52
64
53
65
- uses : actions/upload-artifact@v2
54
66
with :
55
67
name : app_tgz
56
- path : dist/splunk-plotly-collection-viz -${{ needs.tag-version.outputs.version }}.tar.gz
68
+ path : dist/${{ needs.tag-version.outputs.app_name }} -${{ needs.tag-version.outputs.version }}.tar.gz
57
69
58
70
release :
59
71
name : Create Release
0 commit comments