Skip to content

docs: add middleware #11

docs: add middleware

docs: add middleware #11

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
# - main
- docs
paths:
- "docs/go-gin-boilerplate/**"
- ".github/workflows/deploy.yml"
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install & Build
run: |
cd docs/go-gin-boilerplate
npm install
npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/go-gin-boilerplate/build
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3