Skip to content

Commit 66b07fb

Browse files
committed
Fixed release pipeline
1 parent 3fd72a7 commit 66b07fb

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/manual-release.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,26 @@ jobs:
2020
outputs:
2121
old_version: ${{ steps.bumpversion.outputs.old_ver }}
2222
version: ${{ steps.bumpversion.outputs.new_ver }}
23+
app_name: ${{ steps.appinfo.outputs.app_name }}
2324
# Validate bump part before moving forward
2425
if: contains(['major', 'minor', 'patch'], ${{ github.event.inputs.bumpPart }})
2526
steps:
2627
- name: Checkout source
2728
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}"
2835
2936
- name: Bump version and push tag
3037
id: bumpversion
3138
uses: jaumann/[email protected]
3239
env:
3340
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3441
DEFAULT_BUMP: ${{ github.event.inputs.bumpPart }}
42+
3543
- name: Push tags
3644
run: |
3745
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
@@ -45,15 +53,19 @@ jobs:
4553
- name: Checkout code
4654
uses: actions/checkout@v2
4755

56+
- name: Excluding images from README
57+
run: |
58+
sed -i '/^!/d' README.md
59+
4860
- name: Bundle app source
4961
run: |
5062
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 .
5264
5365
- uses: actions/upload-artifact@v2
5466
with:
5567
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
5769

5870
release:
5971
name: Create Release

0 commit comments

Comments
 (0)