From 6e053dac192ca0adfc3e17404af5d9484b786575 Mon Sep 17 00:00:00 2001 From: Hayden Young Date: Thu, 24 Aug 2023 13:02:03 +0100 Subject: [PATCH] chore: Add api publish to github pages. --- .github/workflows/api-publish.yml | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/api-publish.yml diff --git a/.github/workflows/api-publish.yml b/.github/workflows/api-publish.yml new file mode 100644 index 0000000..30c05e8 --- /dev/null +++ b/.github/workflows/api-publish.yml @@ -0,0 +1,41 @@ +--- +name: Generate API Docs + +on: + push: + tags: + - 'v*' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +permissions: + pages: write + id-token: write + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + registry-url: https://registry.npmjs.org/ + #- run: npm ci + #- run: npm run api:docs + - uses: actions/upload-pages-artifact@v2 + with: + path: ./docs/api/ + + deploy: + needs: build + + # Specify runner + deployment step + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action + \ No newline at end of file