Skip to content

Commit 7736545

Browse files
Update sync-repos.yml
1 parent d763a88 commit 7736545

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/sync-repos.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
run: |
8989
Compress-Archive -Path Xceed.WinForm.Words.Sample\bin\Release\* -DestinationPath Xceed.WinForm.Words.Sample.zip
9090
shell: pwsh
91-
91+
9292
# ===== BLAZOR SAMPLE BUILD =====
9393
- name: Restore dependencies (Blazor)
9494
run: dotnet restore Xceed.Blazor.Words.Sample/Xceed.Blazor.Words.Sample.csproj
@@ -99,21 +99,21 @@ jobs:
9999
$content = $content -replace 'LICENSE_KEY_PLACEHOLDER', '${{ secrets.WORDS_LICENSE }}'
100100
Set-Content -Path .\Xceed.Blazor.Words.Sample\Program.cs -Value $content
101101
shell: pwsh
102-
102+
103103
- name: Update base href in index.html (Blazor)
104104
run: |
105105
$indexPath = ".\Xceed.Blazor.Words.Sample\wwwroot\index.html"
106106
$content = Get-Content -Path $indexPath -Raw
107-
$content = $content -replace '<base href=".*" />', '<base href="/Xceed-Words-Samples/" />'
107+
$content = $content -replace '<base href=".*" />', '<base href="https://xceedsoftware.github.io/Xceed-Words-Samples/" />'
108108
Set-Content -Path $indexPath -Value $content
109109
shell: pwsh
110-
110+
111111
- name: Build (Blazor)
112112
run: dotnet build Xceed.Blazor.Words.Sample/Xceed.Blazor.Words.Sample.csproj --configuration Release --no-restore
113-
113+
114114
- name: Publish (Blazor)
115115
run: dotnet publish Xceed.Blazor.Words.Sample/Xceed.Blazor.Words.Sample.csproj -c Release -o publish-blazor
116-
116+
117117
- name: Zip the published files (Blazor)
118118
run: |
119119
cd publish-blazor
@@ -168,7 +168,7 @@ jobs:
168168
$VERSION = "${{ steps.version.outputs.VERSION }}"
169169
mkdir -p "public-repo/releases/$VERSION"
170170
171-
# Copiar los cuatro archivos ZIP
171+
# Copiar los tres archivos ZIP
172172
cp Xceed.Wpf.Words.Sample.zip "public-repo/releases/$VERSION/"
173173
cp Xceed.Console.Words.Sample.zip "public-repo/releases/$VERSION/"
174174
cp Xceed.WinForm.Words.Sample.zip "public-repo/releases/$VERSION/"
@@ -203,7 +203,7 @@ jobs:
203203
-d '{
204204
"tag_name": "auto-${{ steps.version.outputs.VERSION }}",
205205
"name": "Xceed Words Samples Release ${{ steps.version.outputs.VERSION }}",
206-
"body": "Release for Xceed Words Samples version ${{ steps.version.outputs.VERSION }} (WPF, Console, WinForms, and Blazor)",
206+
"body": "Release for Xceed Words Samples version ${{ steps.version.outputs.VERSION }} (WPF, Console, and WinForms)",
207207
"draft": false,
208208
"prerelease": false,
209209
"make_latest": "true"
@@ -236,12 +236,11 @@ jobs:
236236
-H "Accept: application/vnd.github.v3+json" \
237237
--data-binary @Xceed.WinForm.Words.Sample.zip \
238238
"https://uploads.github.com/repos/xceedsoftware/Xceed-Words-Samples/releases/$RELEASE_ID/assets?name=Xceed.WinForm.Words.Sample.zip"
239-
240-
# Blazor Sample
239+
241240
curl -X POST \
242241
-H "Authorization: token $GITHUB_TOKEN" \
243242
-H "Content-Type: application/zip" \
244243
-H "Accept: application/vnd.github.v3+json" \
245244
--data-binary @Xceed.Blazor.Words.Sample.zip \
246-
"https://uploads.github.com/repos/xceedsoftware/Xceed-Words-Samples/releases/$RELEASE_ID/assets?name=Xceed.Blazor.Words.Sample.zip"
245+
"https://uploads.github.com/repos/xceedsoftware/Xceed-Words-Samples/releases/$RELEASE_ID/assets?name=Xceed.Blazor.Words.Sample.zip"
247246
shell: bash

0 commit comments

Comments
 (0)