Skip to content

Commit

Permalink
Refactor workflow upload strategy for artifacts
Browse files Browse the repository at this point in the history
Consolidate artifact upload steps by moving the matrix strategy under a single "Upload Artifact" step. This change simplifies the workflow by removing the commented-out and redundant sections.
  • Loading branch information
ivandrofly committed Nov 22, 2024
1 parent 8d7c4d2 commit 626d7da
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,32 +47,12 @@ jobs:
- name: Create archives
shell: pwsh
run: source\zip-plugin-files.ps1

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

upload-job:
needs: build-job
strategy:
matrix:
plugin: [ 'NoRecursiveDash', 'HIColorer', 'HI2UC', 'LinesUnbreaker' ]

steps:

- name: Upload Artifact
strategy:
matrix:
plugin: [ 'NoRecursiveDash', 'HIColorer', 'HI2UC', 'LinesUnbreaker' ]
uses: actions/upload-artifact@v4
with:
name: ${{matrix.plugin}}
path: C:\plugins\${{matrix.plugin}}.dll

# Update-artifacts:
# needs: build-job
# uses: ./.github/workflows/upload-artifacts.yml

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

0 comments on commit 626d7da

Please sign in to comment.