Merge pull request #1639 from hunterwilhelm/patch-1 #402
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: Deploy to Firebase Hosting | |
on: | |
push: | |
branches: | |
- master | |
env: | |
FIREBASE_TOKEN: ${{secrets.FIREBASE_TOKEN}} | |
ALGOLIA_APP_ID: 05VYZFXKNM | |
ALGOLIA_ADMIN_KEY: ${{secrets.ALGOLIA_ADMIN_KEY}} | |
ALGOLIA_INDEX_NAME: content | |
ALGOLIA_INDEX_FILE: public/algolia.json | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.101.0' | |
extended: true | |
- run: npm ci | |
- run: npm run build | |
- run: npm run algolia | |
- run: npm run deploy |