Skip to content

Ship: Add EAR&OFAC compliance #7

Ship: Add EAR&OFAC compliance

Ship: Add EAR&OFAC compliance #7

Workflow file for this run

name: Deploy github pages
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.128.2'
extended: true
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build with Hugo
env:
HUGO_ENVIRONMENT: production
HUGO_BASEURL: ${{ steps.pages.outputs.base_url }}/
run: hugo --gc --minify
- name: Cleanup
run: (cd public/js; rm -rf d3 mathjax swagger-ui mermaid.min.js)
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public
deploy:
runs-on: ubuntu-24.04
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4