Skip to content

Commit

Permalink
Merge pull request #295 from Hubs-Foundation/append-version-output
Browse files Browse the repository at this point in the history
Append version to zip output
  • Loading branch information
keianhzo authored Jun 5, 2024
2 parents 0b96d30 + 0c9b9a4 commit ce74e9f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,14 @@ jobs:
- name: Update build number
run: |
sed -i'' 's/"dev_build"/${{ github.run_number }}/g' $GITHUB_WORKSPACE/addons/io_hubs_addon/__init__.py
- name: Get version
id: get_version
run: |
VERSION=$(grep '"version"' $GITHUB_WORKSPACE/addons/io_hubs_addon/__init__.py | sed -E 's/.*\(([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+)\).*/\1.\2.\3.\4/')
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Upload addon artifacts
uses: actions/upload-artifact@v3
with:
name: io_hubs_addon
name: io_hubs_addon_${{ steps.get_version.outputs.version }}
path: addons
if-no-files-found: error

0 comments on commit ce74e9f

Please sign in to comment.