Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Merge pull request #139 from NIFCLOUD-mbaas/develop #12

Merge pull request #139 from NIFCLOUD-mbaas/develop

Merge pull request #139 from NIFCLOUD-mbaas/develop #12

Workflow file for this run

name: Generate Reference and Deploy Github Pages
on:
push:
branches:
- master
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
generate-reference:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: generate reference
run: |
sudo gem install jazzy
./generate_reference.sh
- name: zip docs
run: zip -r docs.zip docs/
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: docs
path: docs.zip
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './docs'
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: generate-reference
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1