feat: 譜面定数記事を追加 #284
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: 'build hugo' | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.91.2' | |
extended: true | |
# - uses: actions/setup-node@v2 | |
# with: | |
# node-version: '16' | |
# cache: npm | |
# cache-dependency-path: ./themes/hugo-github-markdown-style/package-lock.json | |
# - name: "src/blogcard: npm install" | |
# working-directory: ./src/blogcard | |
# run: npm install --no-save | |
# - name: "src/blogcard: npm run start" | |
# working-directory: ./src/blogcard | |
# run: npm run start | |
# - run: timeout 120 sh -c 'until (curl -f -LI http://localhost:6060/getogp?url=https://github.com | grep "200") do sleep 1; done' | |
- name: Build | |
run: hugo --minify | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: publish |