Skip to content

Commit 628e535

Browse files
Testing linux x64 publish.
1 parent 341c5fc commit 628e535

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
--runtime win-x64 \
4040
--output "./publish/win-x64" \
4141
--verbosity normal
42+
--self-contained true
4243
4344
- name: Publish for Windows x86
4445
run: |
@@ -47,6 +48,16 @@ jobs:
4748
--runtime win-x86 \
4849
--output "./publish/win-x86" \
4950
--verbosity normal
51+
--self-contained true
52+
53+
- name: Publish for Linux x64
54+
run: |
55+
dotnet publish ${{ env.PROJECT_PATH }} \
56+
--configuration Release \
57+
--runtime linux-x64 \
58+
--output "./publish/linux-x64" \
59+
--verbosity normal
60+
--self-contained true
5061
5162
- name: Create zip archives
5263
run: |
@@ -59,6 +70,9 @@ jobs:
5970
# Zip x86 version
6071
cd ./publish/win-x86 && zip -r "../../artifacts/${{ env.ARTIFACT_NAME }}-win-x86.zip" . && cd ../..
6172
73+
# Zip linux-x64 version
74+
cd ./publish/linux-x64 && zip -r "../../artifacts/${{ env.ARTIFACT_NAME }}-linux-x64.zip" . && cd ../..
75+
6276
- name: Upload build artifacts
6377
uses: actions/upload-artifact@v4
6478
with:
@@ -87,6 +101,7 @@ jobs:
87101
--runtime win-x64 \
88102
--output "./publish/win-x64" \
89103
--verbosity normal
104+
--self-contained true
90105
91106
- name: Publish for Windows x86
92107
run: |
@@ -95,6 +110,16 @@ jobs:
95110
--runtime win-x86 \
96111
--output "./publish/win-x86" \
97112
--verbosity normal
113+
--self-contained true
114+
115+
- name: Publish for Linux x64
116+
run: |
117+
dotnet publish ${{ env.PROJECT_PATH }} \
118+
--configuration Release \
119+
--runtime linux-x64 \
120+
--output "./publish/linux-x64" \
121+
--verbosity normal
122+
--self-contained true
98123
99124
- name: Create zip archives
100125
run: |
@@ -107,6 +132,9 @@ jobs:
107132
# Zip x86 version
108133
cd ./publish/win-x86 && zip -r "../../artifacts/${{ env.ARTIFACT_NAME }}-${{ github.ref_name }}-win-x86.zip" . && cd ../..
109134
135+
# Zip linux-x64 version
136+
cd ./publish/linux-x64 && zip -r "../../artifacts/${{ env.ARTIFACT_NAME }}-linux-x64.zip" . && cd ../..
137+
110138
- name: Generate release notes
111139
id: release_notes
112140
run: |
@@ -117,6 +145,7 @@ jobs:
117145
### Downloads
118146
- **Windows x64**: ${{ env.ARTIFACT_NAME }}-$tag-win-x64.zip
119147
- **Windows x86**: ${{ env.ARTIFACT_NAME }}-$tag-win-x86.zip
148+
- **Linux x64**: ${{ env.ARTIFACT_NAME }}-$tag-linux-x64.zip
120149
EOF
121150
122151
echo "notes_file=./release_notes.md" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)