DEV-7063 [Web] 複数枚画像の公開APIのAPIドキュメント作成 #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- name: Setup node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Install npm packages | |
run: yarn install | |
- name: Build Document | |
run: yarn build | |
- uses: actions/upload-artifact@v3 | |
if: success() | |
with: | |
name: API Document | |
path: dist | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/master' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |