Skip to content

Commit

Permalink
Initial version of docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
aniewielska authored Feb 13, 2022
1 parent 6bb11e2 commit ca82475
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: GitHub Actions Demo
name: Build OpenAPI docs
on: [push]
jobs:
Explore-GitHub-Actions:
docs-build:
runs-on: ubuntu-latest
steps:
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 14.x
- run: npm install -g @redocly/openapi-cli && npm install -g redoc-cli
- run: npm install -g gh-openapi-docs
- name: Check out repository code
uses: actions/checkout@v2
- run: echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "πŸ–₯️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: gh-openapi-docs
- name: Deploy πŸš€
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: .

0 comments on commit ca82475

Please sign in to comment.