@@ -111,22 +111,29 @@ jobs:
111
111
dotnet md2html -i ..\..\CHANGELOG.md -o ..\package\RTSCamera\CHANGELOG.html;
112
112
working-directory : .\source\RTSCamera\
113
113
114
- - name : Zip RTS Camera
115
- run : Compress-Archive -Path .\source\package\* -DestinationPath "${{env.ARTIFACT_NAME}}.zip";
116
-
117
114
- name : Upload a Build Artifact
118
115
119
116
with :
120
117
# Artifact name
121
118
name : ${{env.ARTIFACT_NAME}} ${{steps.dotenv.outputs.game_branch}}
122
119
# A file, directory or wildcard pattern that describes what to upload
123
- path : ${{env.ARTIFACT_NAME}}.zip
120
+ path : .\source\package\*
124
121
# The desired behavior if no files are found using the provided path
122
+
123
+ - name : Zip RTS Camera
124
+ run : Compress-Archive -Path .\source\package\* -DestinationPath "${{env.ARTIFACT_NAME}}.zip";
125
+ if : >-
126
+ contains(github.ref, 'refs/tags/release-v') ||
127
+ contains(github.ref, 'refs/tags/release-b') ||
128
+ contains(github.ref, 'refs/tags/release-e')
125
129
126
130
- name : Create a Release
127
131
id : create_release
128
132
129
- if : contains(github.ref, 'refs/tags/')
133
+ if : >-
134
+ contains(github.ref, 'refs/tags/release-v') ||
135
+ contains(github.ref, 'refs/tags/release-b') ||
136
+ contains(github.ref, 'refs/tags/release-e')
130
137
env :
131
138
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
132
139
with :
@@ -151,7 +158,10 @@ jobs:
151
158
152
159
- name : Upload a Release Asset
153
160
154
- if : contains(github.ref, 'refs/tags/')
161
+ if : >-
162
+ contains(github.ref, 'refs/tags/release-v') ||
163
+ contains(github.ref, 'refs/tags/release-b') ||
164
+ contains(github.ref, 'refs/tags/release-e')
155
165
env :
156
166
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
157
167
with :
@@ -160,6 +170,6 @@ jobs:
160
170
# The path to the asset you want to upload
161
171
asset_path : ${{env.ARTIFACT_NAME}}.zip
162
172
# The name of the asset you want to upload
163
- asset_name : ${{env.ARTIFACT_NAME}} ${{steps.dotenv.outputs.game_branch}}
173
+ asset_name : ${{env.ARTIFACT_NAME}} ${{steps.dotenv.outputs.game_branch}}.zip
164
174
# The content-type of the asset you want to upload. See the supported Media Types here: https://www.iana.org/assignments/media-types/media-types.xhtml for more information
165
175
asset_content_type : application/zip
0 commit comments