Skip to content
Permalink
Browse files

Fix API docs

[changelog skip]
  • Loading branch information...
dahlia committed Sep 25, 2019
1 parent 9c1f75a commit 9496f04323fe94bc091cd63a58b615eeb4cfb99b
Showing with 16 additions and 12 deletions.
  1. +12 −7 .github/workflows/main.yml
  2. +4 −5 Docs/publish.sh
@@ -10,7 +10,11 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- uses: dahlia/actions/checkout-pull-request@master
if: github.event_name != 'pull_request'
- uses: actions/checkout@master
if: github.event_name == 'pull_request'
with:
ref: ${{ github.head_ref }}
- run: .github/bin/dist-version.ps1
shell: pwsh
- run: .github/bin/dist-release-note.sh CHANGES.md obj/release_note.txt
@@ -41,13 +45,14 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- uses: dahlia/actions/checkout-pull-request@master
- run: mkdir -p Docs/obj/
- uses: dahlia/actions/docfx@master
env:
MSBUILD_PROJECT: Libplanet
if: github.event_name != 'pull_request'
- uses: actions/checkout@master
if: github.event_name == 'pull_request'
with:
args: Docs/docfx.json
ref: ${{ github.head_ref }}
- run: mkdir -p Docs/obj/
- run: Docs/build.ps1
shell: pwsh
- uses: actions/upload-artifact@master
with:
name: docs
@@ -6,7 +6,7 @@ if ! (env | grep '^GITHUB_'); then
echo "This script is intended to be run by GitHub Actions."
echo "You can run GitHub Actions locally using \`act':"
echo " https://github.com/nektos/act"
} > /dev/stderr
} >&2
exit 1
fi

@@ -28,7 +28,7 @@ if [ "$GHPAGES_SSH_KEY" = "" ]; then
", and be allowed write access."
echo "GHPAGES_SSH_KEY has to contain a base64-encoded private key without" \
"new lines."
} > /dev/stderr
} >&2
exit 0
fi

@@ -45,15 +45,14 @@ else
[ "$GITHUB_REF" = "${GITHUB_REF#refs/tags/}" ] &&
[ "$GITHUB_REF" != refs/heads/master ] && \
[ "$GITHUB_REF" = "${GITHUB_REF#refs/heads/maintenance-}" ]; then
echo "This branch is not for releases, so docs won't be published." \
> /dev/stderr
echo "This branch is not for releases, so docs won't be published." >&2
exit 0
fi
slug="$(echo -n "$GITHUB_REF" | sed -e 's/^refs\/\(heads\|tags\)\///g')"
fi
[ "$slug" != "" ]

echo "Slug: $slug" > /dev/stderr
echo "Slug: $slug" >&2

echo "$GHPAGES_SSH_KEY" | b64d > /tmp/github_id
chmod 600 /tmp/github_id

0 comments on commit 9496f04

Please sign in to comment.
You can’t perform that action at this time.