Skip to content

docs: update API documentation, add import documentation (#20) #75

docs: update API documentation, add import documentation (#20)

docs: update API documentation, add import documentation (#20) #75

name: Build & Deploy
on:
push:
branches:
- main
pull_request:
env:
# renovate: datasource=github-tags depName=gohugoio/hugo
HUGO_VERSION: "0.112.7"
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0
with:
hugo-version: ${{ env.HUGO_VERSION }}
extended: true
- name: Set up dependencies
run: make setup-ci
- name: Build
run: hugo --minify
- name: Upload artifact
uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2.0.0
with:
path: public/
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@12ab2b16cf43a7a061fe99da74b6f8f11fb77f5b # v2.0.3