-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (28 loc) · 1018 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Publish schema to GH pages and Readme
on:
push:
branches:
- main
jobs:
generate-schema:
name: Publish
runs-on: ubuntu-latest
environment: test
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: ./.github/actions/test-and-build
with:
visitorId: '${{ secrets.VISITOR_ID }}'
privateKey: '${{ secrets.PRIVATE_KEY }}'
requestId: '${{ secrets.REQUEST_ID }}'
- name: Deploy to GitHub pages 🚀📘
uses: JamesIves/github-pages-deploy-action@8817a56e5bfec6e2b08345c81f4d422db53a2cdc
with:
branch: gh-pages
folder: dist
# Disable deploying the schema to Readme automatically for now
# - name: Deploy to Readme API Reference 🚀🦉
# uses: readmeio/rdme@4467d2538f9e1cc7f3ef3cf4f8201bee7a90396a
# with:
# rdme: openapi dist/schemas/fingerprint-server-api-readme-explorer.yaml --key=${{ secrets.README_API_KEY }} --id=647decb9c3af460722417604