Skip to content

Commit b23aee7

Browse files
committed
Updated manual-release pipeline
1 parent bbb7939 commit b23aee7

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/manual-release.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,27 @@ 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
new_sha: ${{ steps.sha.outputs.sha }}
2425
# Validate bump part before moving forward
2526
if: contains(['major', 'minor', 'patch'], ${{ github.event.inputs.bumpPart }})
2627
steps:
2728
- name: Checkout source
2829
uses: actions/checkout@v2
2930

31+
- name: Get app info
32+
id: appinfo
33+
run: |
34+
APP_NAME=$(cat app.manifest | jq -r '.info.id.name' | tr _ - )
35+
echo "::set-output name=app_name::${APP_NAME}"
36+
3037
- name: Bump version and push tag
3138
id: bumpversion
3239
uses: jaumann/[email protected]
3340
env:
3441
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3542
DEFAULT_BUMP: ${{ github.event.inputs.bumpPart }}
43+
3644
- name: Push tags
3745
run: |
3846
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
@@ -55,26 +63,20 @@ jobs:
5563
ref: ${{ needs.tag-version.outputs.new_sha }}
5664
fetch-depth: 0
5765

58-
- name: Fetch and set app info
59-
id: appinfo
60-
run: |
61-
APP_NAME=$(echo "$APP_ID" | tr _ - )
62-
echo "::set-output name=app_name::${APP_NAME}"
63-
6466
- name: Excluding images from README
6567
run: |
6668
sed -i '/^!/d' README.md
6769
6870
- name: Bundle app source
6971
run: |
7072
mkdir dist
71-
tar -zcvf dist/${{ steps.appinfo.outputs.app_name }}_v${{ needs.tag-version.outputs.version }}.tgz --exclude='.[^/]*' --exclude=./dist .
73+
tar -zcvf dist/${{ needs.tag-version.outputs.app_name }}_v${{ needs.tag-version.outputs.version }}.tgz --exclude='.[^/]*' --exclude=./dist .
7274
7375
- name: Upload artifact
7476
uses: actions/upload-artifact@v2
7577
with:
7678
name: app_tgz
77-
path: dist/${{ steps.appinfo.outputs.app_name }}_v${{ needs.tag-version.outputs.version }}.tgz
79+
path: dist/${{ needs.tag-version.outputs.app_name }}_v${{ needs.tag-version.outputs.version }}.tgz
7880

7981
release:
8082
name: Create Release

0 commit comments

Comments
 (0)