Skip to content

Commit

Permalink
Add upload job to GitHub Actions workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ivandrofly committed Nov 22, 2024
1 parent aebe54e commit 8d7c4d2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- main

jobs:
build:
build-job:
runs-on: windows-latest
# strategy:
# matrix:
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions source/Plugins.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</Folder>
<Folder Name="/.Solution Items/github-workflows/">
<File Path="..\.github\workflows\main.yml" />
<File Path="..\.github\workflows\upload-artifacts.yml" />
</Folder>
<Folder Name="/Ivandrofly/">
<Project Path="DialogueAutoMarker\DialogueAutoMarker.csproj" Type="Classic C#" />
Expand Down

0 comments on commit 8d7c4d2

Please sign in to comment.