Skip to content

Commit

Permalink
ci: use ory/ci/docs/cli-next for docs generation (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
icyphox authored Feb 23, 2022
1 parent e5ba6e9 commit 2876baa
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,36 +23,11 @@ jobs:
docs:
name: Generate docs
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- uses: ory/ci/checkout@master
with:
path: current-repo
- uses: actions/setup-go@v2
- uses: ory/ci/docs/cli-next@master
with:
go-version: '^1.17'
- run: |
cd current-repo
mkdir -p docs/docs
make docs/cli
cp -rf docs ../docs
cd ..
echo 'docsdir='"./docs" >> $GITHUB_ENV
- uses: ory/ci/checkout@master
with:
repository: ory/docs
path: ${{ env.docsdir }}
token: ${{ secrets.ORY_BOT_PAT }}
- env:
GITHUB_TOKEN: ${{ secrets.ORY_BOT_PAT }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "ory-bot"
cd "$docsdir"
git add -A
git commit -a -m "autogen(docs): regenerate ory/cli reference" --allow-empty
git pull -ff
git push
output-dir: docs/cli/cli

release:
name: Generate release
Expand Down

0 comments on commit 2876baa

Please sign in to comment.