Merge pull request #3170 from OpenSecuritySummit/adams9777-patch-117364 #3200
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: 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 | |