Skip to content

Commit 4268b28

Browse files
Adding release package workflow (#8846)
* Updating release-package workflow * Updating 3rd-party actions to their latest versions * Testing artifact upload without separate compress step to avoid double-zipping [skip ci] Hopefully it doesn't have horrible performance anymore * Updating release-package workflow [skip ci]
1 parent 8891ee4 commit 4268b28

File tree

4 files changed

+36
-7
lines changed

4 files changed

+36
-7
lines changed

.github/workflows/build-crowdin-translation-packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111

1212
steps:
1313
- name: Orchard CMS
14-
uses: andrii-bodnar/crowdin-request-action@aac9a865d62b37060b0ce530db5ac5cfca02dd2c # 0.0.2
14+
uses: andrii-bodnar/crowdin-request-action@ee7a2af9564d8934b5b4a8427185aaaffee0165e # v0.3.0
1515
with:
1616
route: POST /projects/{projectId}/translations/builds
1717
projectId: 46524
1818
env:
1919
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}
2020

2121
- name: Orchard CMS Gallery
22-
uses: andrii-bodnar/crowdin-request-action@aac9a865d62b37060b0ce530db5ac5cfca02dd2c # 0.0.2
22+
uses: andrii-bodnar/crowdin-request-action@ee7a2af9564d8934b5b4a8427185aaaffee0165e # v0.3.0
2323
with:
2424
route: POST /projects/{projectId}/translations/builds
2525
projectId: 63766

.github/workflows/compile.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
runs-on: windows-2025
1919
steps:
2020
- name: Clone Repository
21-
uses: actions/checkout@v4.1.1
21+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222

2323
- name: Restore NuGet Packages
2424
run: nuget restore src/Orchard.sln
2525

2626
- name: Add MSBuild to PATH
27-
uses: microsoft/setup-msbuild@v2
27+
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
2828

2929
- name: Compile
3030
run: msbuild Orchard.proj /m /v:minimal /t:Compile /p:TreatWarningsAsErrors=true -WarnAsError /p:MvcBuildViews=true
@@ -70,10 +70,10 @@ jobs:
7070
runs-on: windows-2025
7171
steps:
7272
- name: Clone Repository
73-
uses: actions/checkout@v4.1.1
73+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7474

7575
- name: Setup NodeJS
76-
uses: actions/setup-node@v4.0.2
76+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
7777
with:
7878
node-version: 7
7979

.github/workflows/release-package.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,32 @@ jobs:
88
release-package:
99
name: Release Package
1010
runs-on: Windows-2025
11+
defaults:
12+
run:
13+
shell: cmd
14+
steps:
15+
- name: Clone Repository
16+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
18+
- name: Restore NuGet Packages
19+
run: nuget restore src/Orchard.sln
20+
21+
- name: Add MSBuild to PATH
22+
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
23+
24+
- name: Build Precompiled Application
25+
run: msbuild Orchard.proj /m /v:minimal /t:Precompiled
26+
27+
- name: Generate Release Package Name
28+
id: package-name
29+
shell: pwsh
30+
run: |
31+
$packageName = "Orchard-$('${{ github.ref_name }}'.Replace('/', '_'))-${{ github.sha }}"
32+
"package-name=$packageName" >> $Env:GITHUB_OUTPUT
33+
34+
- name: Upload Release Package
35+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
36+
with:
37+
name: ${{ steps.package-name.outputs.package-name }}
38+
path: .\build\Precompiled
39+
if-no-files-found: error

.github/workflows/specflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
shell: cmd
4040
steps:
4141
- name: Clone Repository
42-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
42+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4343
with:
4444
ref: ${{ matrix.branch }}
4545

0 commit comments

Comments
 (0)