From 8d7c4d29c0e1490ea7b923d8d00f82a8a3446806 Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Fri, 22 Nov 2024 15:56:01 +0000 Subject: [PATCH] Add upload job to GitHub Actions workflow Renamed the build job to build-job and added a new upload-job. The upload job uses a matrix strategy to handle multiple plugins and utilizes the upload-artifact action to store build artifacts. --- .github/workflows/main.yml | 21 +++++++++++++++++---- source/Plugins.slnx | 1 + 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0003378..52448d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,7 @@ on: - main jobs: - build: + build-job: runs-on: windows-latest # strategy: # matrix: @@ -53,10 +53,23 @@ jobs: # with: # name: Plugins # path: C:\plugins\*.dll + + upload-job: + needs: build-job + strategy: + matrix: + plugin: [ 'NoRecursiveDash', 'HIColorer', 'HI2UC', 'LinesUnbreaker' ] + + steps: + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: ${{matrix.plugin}} + path: C:\plugins\${{matrix.plugin}}.dll - Update-artifacts: - needs: build - uses: ./.github/workflows/upload-artifacts.yml +# Update-artifacts: +# needs: build-job +# uses: ./.github/workflows/upload-artifacts.yml # - name: Upload Artifact # uses: actions/upload-artifact@v4 diff --git a/source/Plugins.slnx b/source/Plugins.slnx index e291e65..36c5c89 100644 --- a/source/Plugins.slnx +++ b/source/Plugins.slnx @@ -12,6 +12,7 @@ +