Skip to content

Commit

Permalink
Add plugin upload GitHub Action
Browse files Browse the repository at this point in the history
This action uploads a specified plugin file as an artifact. It has a required input for the file name and uses the `upload-artifact` action to perform the upload. Former individual upload steps are replaced by a single step that takes the file name as an input.
  • Loading branch information
ivandrofly committed Nov 23, 2024
1 parent b009343 commit 559672e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/plugin-upload/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Upload plugins
description: Upload plugin/artifact
inputs:
file-name:
description: file name to create artifact (without extension e.g. HI2UC)
required: true
runs:
using: composite
steps:
- name: Upload ${{inputs.file-name}}
uses: actions/upload-artifact@v4
with:
name: ${{inputs.file-name}}
path: C:\plugins\${{inputs.file-name}}.dll

# - name: Upload HIColorer
# uses: actions/upload-artifact@v4
# with:
# name: HIColorer
# path: C:\plugins\HIColorer.dll
#
# - name: Upload TightHyphen
# uses: actions/upload-artifact@v4
# with:
# name: TightHyphen
# path: C:\plugins\TightHyphen.dll
#
# - name: Upload NoRecursiveDash
# uses: actions/upload-artifact@v4
# with:
# name: NoRecursiveDash
# path: C:\plugins\NoRecursiveDash.dll
#
# - name: Upload LinesUnbreaker
# uses: actions/upload-artifact@v4
# with:
# name: LinesUnbreaker
# path: C:\plugins\LinesUnbreaker.dll

0 comments on commit 559672e

Please sign in to comment.