File tree 2 files changed +12
-14
lines changed
src/Glutinum.Build/Commands
2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 29
29
version : 8
30
30
31
31
- name : Publish
32
- run : |
33
- git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/glutinum-org/cli.git
34
- ./build.sh publish --web-only
32
+ uses : peaceiris/actions-gh-pages@v3
33
+ with :
34
+ github_token : ${{ secrets.GITHUB_TOKEN }}
35
+ publish_dir : ./src/Glutinum.Web/dist
Original file line number Diff line number Diff line change @@ -301,19 +301,16 @@ type PublishCommand() =
301
301
if settings.IsWebOnly then
302
302
Web.WebCommand() .Execute( context, Web.WebSettings()) |> ignore
303
303
304
- if Environment.GetEnvironmentVariable( " CI" ) = " true" then
305
- Command.Run(
306
- " npx" ,
307
- " gh-pages -d ./src/Glutinum.Web/dist/ -u \" github-actions-bot <[email protected] >\" "
308
- )
309
- else
304
+ // If we are not in a CI environment, we can publish the web app
305
+ // Otherwise, we want to let the CI handle it
306
+ if Environment.GetEnvironmentVariable( " CI" ) = null then
310
307
Command.Run( " npx" , " gh-pages -d ./src/Glutinum.Web/dist/" )
311
308
312
- // Reset the changes to the Prelude file, as we only needed it for the publish
313
- Command.Run(
314
- " git" ,
315
- " checkout HEAD -- src/Glutinum.Converter/Prelude.fs"
316
- )
309
+ // Reset the changes to the Prelude file, as we only needed it for the publish
310
+ Command.Run(
311
+ " git" ,
312
+ " checkout HEAD -- src/Glutinum.Converter/Prelude.fs"
313
+ )
317
314
318
315
0
319
316
else if Seq.isEmpty releaseContext.ReleaseCommits then
You can’t perform that action at this time.
0 commit comments