Skip to content

Commit

Permalink
Simplify artifact upload process
Browse files Browse the repository at this point in the history
Consolidate upload artifact steps into a single step using a matrix strategy. This reduces redundancy and maintains the same functionality by iterating over the array of plugins.
  • Loading branch information
ivandrofly committed Nov 22, 2024
1 parent ca84c6b commit a6f8411
Showing 1 changed file with 11 additions and 32 deletions.
43 changes: 11 additions & 32 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
plugin: [ 'NoRecursiveDash', 'HIColorer', 'HI2UC', 'HIColorer', 'LinesUnbreaker' ]

steps:
# Checkout the repository
Expand Down Expand Up @@ -44,38 +47,14 @@ jobs:
shell: pwsh
run: source\zip-plugin-files.ps1

- name: Upload Artifact (All)
uses: actions/upload-artifact@v4
with:
name: Plugins
path: C:\plugins\*.dll

- name: Upload Artifact (HI2UC)
uses: actions/upload-artifact@v4
with:
name: HI2UC
path: C:\plugins\HI2UC.dll

- name: Upload Artifact (HIColorer)
uses: actions/upload-artifact@v4
with:
name: HIColorer
path: C:\plugins\HIColorer.dll

- name: Upload Artifact (TightHyphen)
uses: actions/upload-artifact@v4
with:
name: TightHyphen
path: C:\plugins\TightHyphen.dll

- name: Upload Artifact (LinesUnbreaker)
uses: actions/upload-artifact@v4
with:
name: LinesUnbreaker
path: C:\plugins\LinesUnbreaker.dll
# - name: Upload Artifact (All)
# uses: actions/upload-artifact@v4
# with:
# name: Plugins
# path: C:\plugins\*.dll

- name: Upload Artifact (NoRecursiveDash)
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: NoRecursiveDash
path: C:\plugins\NoRecursiveDash.dll
name: ${{matrix.plugin}}
path: C:\plugins\${{matrix.plugin}}.dll

0 comments on commit a6f8411

Please sign in to comment.