Skip to content

Commit

Permalink
Add workflow planetarium/libplanet/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
riemannulus committed Oct 30, 2023
1 parent b1cf3d9 commit fa3a075
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
on:
push:
branches-ignore:
- gh-pages
tags:
- "*"
schedule:
- cron: 59 14 * * *
pull_request: null
name: update docs

jobs:
docs:
if: github.event_name != 'schedule' || github.repository == 'planetarium/libplanet'
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
if: github.event_name != 'pull_request'
- uses: actions/checkout@main
if: github.event_name == 'pull_request'
with:
ref: ${{ github.pull_request.head.sha }}
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- run: dotnet build -p:SkipSonar=true
- run: mkdir -p Docs/obj/
- run: Docs/build.ps1
shell: pwsh
- uses: actions/upload-artifact@main
with:
name: docs
path: Docs/_site/
- run: Docs/publish.sh
env:
GHPAGES_SSH_KEY: ${{ secrets.GHPAGES_SSH_KEY }}
if: github.event_name != 'pull_request'
- id: docs-url
run: 'echo ::set-output name=url::"$(cat Docs/obj/url.txt)"'
if: github.event_name != 'pull_request'
- uses: Sibz/[email protected]
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: docs
description: Libplanet docs generated by DocFX
state: 'success'
target_url: ${{ steps.docs-url.outputs.url }}
if: github.event_name != 'pull_request'

1 comment on commit fa3a075

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Benchmark.Net Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: fa3a075 Previous: 6d56d40 Ratio
Libplanet.Benchmarks.BlockChain.ContainsBlock 73421.86315789474 ns (± 19836.15140671222) 35558.28571428572 ns (± 3271.931581346999) 2.06

This comment was automatically generated by workflow using github-action-benchmark.

CC: @libplanet

Please sign in to comment.