diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 711d62e..66aba04 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -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/setup-node@v2.5.1 + 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/github-pages-deploy-action@v4.2.2 + with: + branch: gh-pages + folder: . +