Skip to content

Commit

Permalink
Updated build script
Browse files Browse the repository at this point in the history
  • Loading branch information
chdominguez committed Sep 10, 2024
1 parent f7b9327 commit 07ca833
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ jobs:
'https://horus.bsc.es/repo_api/plugins/' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F "description=$(jq -Rs . < plugin_description.md)" \
-F "description=$(jq -Rs . < README.md)" \
-F 'file=@set_all_remotes.hp' \
-H "Authorization: Bearer ${{ secrets.REPO_TOKEN }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.hp
6 changes: 6 additions & 0 deletions build_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

echo "Building plugin..."

current_version=$(git describe --tags)

echo "Current version: $current_version"

sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$current_version\"/" set_all_remotes/plugin.meta

rm set_all_remotes.hp

zip -r set_all_remotes.hp set_all_remotes
Binary file removed set_all_remotes.hp
Binary file not shown.

0 comments on commit 07ca833

Please sign in to comment.