github.com/solo-io/service-mesh-hub@v0.9.2/.github/workflows/publish_docs.yaml (about)

     1  name: Docs
     2  
     3  on:
     4    push:
     5      branches:
     6      - 'main'
     7    release:
     8      types:
     9      - created
    10  
    11  jobs:
    12    build:
    13      name: Generate versioned docs site
    14      runs-on: ubuntu-18.04
    15      steps:
    16      - name: Set up Go 1.14
    17        uses: actions/setup-go@v1
    18        with:
    19          go-version: 1.14
    20        id: go
    21      - name: Install Protoc
    22        uses: solo-io/setup-protoc@master
    23        with:
    24          version: '3.6.1'
    25          repo-token: ${{ secrets.GITHUB_TOKEN }}
    26      - name: Setup Hugo
    27        uses: peaceiris/actions-hugo@v2
    28        with:
    29          hugo-version: '0.62.2'
    30  
    31      - name: Check out code into the Go module directory
    32        uses: actions/checkout@v2
    33  
    34      - name: Update deps
    35        run: |
    36          make install-go-tools
    37  
    38      - name: Generate versioned docs site
    39        run: ./ci/build-docs-site.sh
    40  
    41      - name: Deploy to Firebase
    42        uses: w9jds/firebase-action@master
    43        with:
    44          args: deploy --only hosting
    45        env:
    46          PROJECT_ID: solo-corp
    47          PROJECT_PATH: ./ci/docs-site/
    48          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}