Skip to content

Commit da1f842

Browse files
authored
Merge pull request #6 from doebrowsk/release-0.5-pre
make compress step multi-step (#5)
2 parents 68289a4 + 2788551 commit da1f842

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

.github/workflows/keyfactor-extension-release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
name: Keyfactor Extension - Release
44

55
env:
6-
project_folder: 'ClassLibrary1'
6+
SOLUTION_FOLDER: 'ClassLibrary1'
7+
PROJECT_FOLDER: 'ClassLibrary1'
78

89
# Controls when the action will run.
910
on:
@@ -108,7 +109,11 @@ jobs:
108109
if: ${{ success() }}
109110
run: |
110111
md ${{ github.workspace }}\zip\Keyfactor
111-
Compress-Archive -Path ${{ env.SOLUTION_PATH }}\${{ env.project_folder }}\bin\Release\*.dll,${{ env.SOLUTION_PATH }}\${{ env.project_folder }}\bin\Release\*.json,${{ env.SOLUTION_PATH }}\${{ env.project_folder }}\bin\Release\*.config -DestinationPath ${{ github.workspace }}\zip\Keyfactor\$Env:REPO_NAME.zip -Force
112+
Compress-Archive -Path `
113+
${{ env.SOLUTION_FOLDER }}\${{ env.PROJECT_FOLDER }}\bin\Release\*.dll, `
114+
${{ env.SOLUTION_FOLDER }}\${{ env.PROJECT_FOLDER }}\bin\Release\*.json, `
115+
${{ env.SOLUTION_FOLDER }}\${{ env.PROJECT_FOLDER }}\bin\Release\*.config `
116+
-DestinationPath ${{ github.workspace }}\zip\Keyfactor\$Env:REPO_NAME.zip -Force
112117
113118
- name: Upload Release Asset (x64)
114119
if: ${{ success() }}

.github/workflows/keyfactor-release-candidate.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
name: Keyfactor Extension - Release Candidate
55

6+
env:
7+
SOLUTION_FOLDER: 'ClassLibrary1'
8+
PROJECT_FOLDER: 'ClassLibrary1'
9+
610
# Controls when the action will run.
711
on:
812
# Triggers the workflow on PR open
@@ -130,7 +134,9 @@ jobs:
130134
- name: Archive Files
131135
run: |
132136
md ${{ github.workspace }}\zip\Keyfactor
133-
Compress-Archive -Path ${{ github.workspace }}\ClassLibrary1\ClassLibrary1\bin\Release\*.dll -DestinationPath ${{ github.workspace }}\zip\Keyfactor\$Env:REPO_NAME.zip -Force
137+
Compress-Archive -Path `
138+
${{ env.SOLUTION_FOLDER }}\${{ env.PROJECT_FOLDER }}\bin\Release\*.dll `
139+
-DestinationPath ${{ github.workspace }}\zip\Keyfactor\$Env:REPO_NAME.zip -Force
134140
135141

136142
- name: Upload a Build Artifact
@@ -152,5 +158,5 @@ jobs:
152158
with:
153159
upload_url: ${{ steps.create_release.outputs.upload_url }}
154160
asset_path: ${{ github.workspace }}\zip\Keyfactor\${{ env.REPO_NAME}}.zip
155-
asset_name: ${{ env.REPO_NAME}}.zip
161+
asset_name: ${{ env.REPO_NAME}}_${{ steps.create_release.outputs.current_tag }}.zip
156162
asset_content_type: application/zip

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
v0.5
2+
- testing of all building workflows
3+
- make compress step multi-line
4+
15
v0.0
26
- Creating Changelog

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# release-workflow-testing
22
A test repository for changes to GitHub actions for release workflows.
3+
4+
This repository tests C# building actions and GitHub pages workflows as well.

0 commit comments

Comments
 (0)