Skip to content

Commit bf8d7eb

Browse files
committed
zip and upload build
1 parent 94d674c commit bf8d7eb

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed
Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: build
22
description: 'Restore and build the dotnet solution'
33

4-
inputs:
5-
dotnet-build-configuration:
6-
default: Release
7-
description: 'Defines the build configuration. The default for most projects is Release.'
8-
required: true
9-
104
runs:
115
using: "composite"
126
steps:
@@ -16,10 +10,18 @@ runs:
1610

1711
- name: Build solutions
1812
shell: bash
19-
run: dotnet build --no-restore --configuration ${{ inputs.dotnet-build-configuration }}
20-
21-
- name: Zip and upload build
22-
uses: actions/upload-artifact@v4
13+
run: dotnet build --no-restore -c release
14+
15+
- name: Zip build
16+
shell: bash
17+
run: |
18+
del src\ExCSS\bin\Release\netstandard2.0\ExCSS.Unity.deps.json
19+
mkdir .\builds\lib\netstandard2.0
20+
copy .\src\ExCSS\bin\Release\netstandard2.0\*.* .\builds\lib\netstandard2.0
21+
zip -r ./artifacts/build.zip ./builds
22+
23+
- name: Upload build
24+
uses: actions/upload-artifact@v4
2325
with:
24-
name:
25-
path: ./
26+
name: build.zip
27+
path: ./artifacts

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717

1818
- name: Restore and build
1919
uses: './.github/actions/dotnet/build'
20-
with:
21-
retention-days: 5
2220

2321
- name: Execute unit test and publish reports
2422
uses: './.github/actions/dotnet/test'

0 commit comments

Comments
 (0)