Skip to content

Add Fast Fourier Transform (#109) #556

Add Fast Fourier Transform (#109)

Add Fast Fourier Transform (#109) #556

name: github pages
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.25'
- run: mdbook build
- name: Install static-sitemap-cli
run: npm install static-sitemap-cli
- name: Generate sitemap
run: |
cd book
npx sscli --no-clean --base https://nthu-cp.github.io/NTHU-CPP
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book