Skip to content

Commit

Permalink
Updated readme and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chdominguez committed Sep 10, 2024
1 parent 117594b commit eadad9b
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 2 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Release Plugin

on:
push:
tags:
- "*"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Build the plugin
run: bash build_plugin.sh

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Set All Remotes ${{ github.ref }}
draft: false
prerelease: false

- name: Upload release asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./set_all_remotes.hp
asset_name: set_all_remotes.hp
asset_content_type: application/octet-stream

- name: Upload to Horus plugin repository
run: |
# Install jq and curl
sudo apt install jq curl -y
echo "Uploading plugin to Horus repository"
curl -X 'POST' \
'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 'file=@set_all_remotes.hp' \
-H "Authorization: Bearer ${{ secrets.REPO_TOKEN }}"
54 changes: 52 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,52 @@
# set_all_blocks_horus
Horus plugin for setting all the flow blocks to the same remote
# Set All Blocks

Horus plugin for setting all the flow blocks to the same remote.

## Features

- Set all flow blocks to the same remote with ease.
- Compatible with all Horus-supported platforms.
- Supports any input that will be output from the block untouched, allowing for easy interconnection between blocks.

## Installation

1. Download the plugin
- From the "Plugins" tab inside Horus
- Or downloading `.hp` file from the [Horus Plugin Repository](https://horus.bsc.es/repo/plugins/set_all_blocks).
2. Open the Horus Plugin Manager and select the file to be installed.

## Usage

Once the plugin is installed and activated:

1. Open any flow in Horus.
2. Navigate to the "Blocks" section.
3. Select "Set All Blocks" and place it on the flow.
4. Select a remote for the "Set All Blocks" block, automatically the same remote will be applied to all the blocks of the remote.

## Screenshots

Here are some screenshots that demonstrate the functionality of the plugin:

![Set All Remotes block](https://github.com/user-attachments/assets/0c40c58a-3ee4-4ce6-84e2-20dc33aba548)
_Screenshot 1: The block interface where users can set all blocks to the same remote._

![In a flow](https://github.com/user-attachments/assets/c26b9921-55e3-4972-8783-cdcbc25b6b7a)
_Screenshot 2: Example where the first block will run on "Local" but following ones after the "Set All Remotes" will run on "remote"._

## Additional Resources

- [Official Horus Documentation](https://horus.bsc.es/docs)
- [GitHub Repository](https://github.com/your-repo/set_all_blocks)

More info about Horus at [horus.bsc.es](https://horus.bsc.es).

## License

This plugin is licensed under the MIT License.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 comments on commit eadad9b

Please sign in to comment.