name: Deploy

on:
  push:
    tags:
      - v2.*

jobs:
  deploy:
    name: Firebase Deploy
    runs-on: ubuntu-latest
    defaults:
      run:
        shell: bash
    steps:
    - name: Install Node.js
      uses: actions/setup-node@v2
      with:
        node-version: 16
    - name: Install Firebase CLI
      run: |
        npm install -g firebase-tools
        firebase --version
    - name: Install Hugo
      run: |
        wget https://github.com/gohugoio/hugo/releases/download/v0.92.1/hugo_0.92.1_Linux-64bit.deb
        sudo dpkg -i hugo*.deb
        hugo version
    - name: Checkout
      uses: actions/checkout@v2
    - name: Cache Hugo Modules
      uses: actions/cache@v2
      with:
        path: /tmp/hugo_cache
        key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
        restore-keys: |
          ${{ runner.os }}-hugomod-
    - name: Build
      run: hugo
    - name: Firebase Deploy
      env:
        FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
      run: firebase deploy

name: Deploy

on:
  push:
    tags:
      - v2.*

jobs:
  deploy:
    name: Firebase Deploy
    runs-on: ubuntu-latest
    defaults:
      run:
        shell: bash
    steps:
    - name: Install Node.js
      uses: actions/setup-node@v2
      with:
        node-version: 16
    - name: Install Firebase CLI
      run: |
        npm install -g firebase-tools
        firebase --version
    - name: Setup Hugo
      uses: peaceiris/actions-hugo@v2
      with:
        hugo-version: latest
    - name: Checkout
      uses: actions/checkout@v2
    - name: Cache Hugo Modules
      uses: actions/cache@v2
      with:
        path: /tmp/hugo_cache
        key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
        restore-keys: |
          ${{ runner.os }}-hugomod-
    - name: Build
      run: hugo
    - name: Firebase Deploy
      env:
        FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
      run: firebase deploy

Switch to Hugo install action
Switch to Hugo install action

Always use latest
