Skip to content

Commit 8d7c4d2

Browse files
committed
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.
1 parent aebe54e commit 8d7c4d2

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- main
1111

1212
jobs:
13-
build:
13+
build-job:
1414
runs-on: windows-latest
1515
# strategy:
1616
# matrix:
@@ -53,10 +53,23 @@ jobs:
5353
# with:
5454
# name: Plugins
5555
# path: C:\plugins\*.dll
56+
57+
upload-job:
58+
needs: build-job
59+
strategy:
60+
matrix:
61+
plugin: [ 'NoRecursiveDash', 'HIColorer', 'HI2UC', 'LinesUnbreaker' ]
62+
63+
steps:
64+
- name: Upload Artifact
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: ${{matrix.plugin}}
68+
path: C:\plugins\${{matrix.plugin}}.dll
5669

57-
Update-artifacts:
58-
needs: build
59-
uses: ./.github/workflows/upload-artifacts.yml
70+
# Update-artifacts:
71+
# needs: build-job
72+
# uses: ./.github/workflows/upload-artifacts.yml
6073

6174
# - name: Upload Artifact
6275
# uses: actions/upload-artifact@v4

source/Plugins.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
</Folder>
1313
<Folder Name="/.Solution Items/github-workflows/">
1414
<File Path="..\.github\workflows\main.yml" />
15+
<File Path="..\.github\workflows\upload-artifacts.yml" />
1516
</Folder>
1617
<Folder Name="/Ivandrofly/">
1718
<Project Path="DialogueAutoMarker\DialogueAutoMarker.csproj" Type="Classic C#" />

0 commit comments

Comments
 (0)