# This file was auto-generated by the Firebase CLI # https://github.com/firebase/firebase-tools name: Build Hugo site on PR 'on': pull_request jobs: Build_Hugo_Site: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod #- name: Fecth External Blog # run: ./external-blogs.sh - name: Hugo setup uses: peaceiris/actions-hugo@v2 with: hugo-version: 'latest' - name: Build Hugo site run: hugo --minify - name: Save PR number run: | mkdir -p ./pr echo ${{ github.event.number }} > ./pr/NR - name: Upload artifact uses: actions/upload-artifact@v2 with: name: hugo path: .