Skip to content

Merge pull request #3132 from OpenSecuritySummit/Alone2671-patch-1277-1 #3161

Merge pull request #3132 from OpenSecuritySummit/Alone2671-patch-1277-1

Merge pull request #3132 from OpenSecuritySummit/Alone2671-patch-1277-1 #3161

Workflow file for this run

name: github pages
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-22.04
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }}
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }}
ALGOLIA_INDEX_FILE: ${{ secrets.ALGOLIA_INDEX_FILE }}
steps:
- uses: actions/checkout@main
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
#hugo-version: '0.75.1'
#hugo-version: '0.91.2'
#hugo-version : '0.93.2'
#hugo-version : '0.107.0'
hugo-version: '0.110.0'
extended: true
- name: Build
run: hugo --gc --minify --cleanDestinationDir
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
- name: Update Agnolia
run: |
npm install atomic-algolia
./node_modules/.bin/atomic-algolia