-
Notifications
You must be signed in to change notification settings - Fork 26
42 lines (38 loc) · 922 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: docs
on:
push:
branches:
- main
tags:
- '*'
jobs:
deploy:
permissions:
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.91.2'
- name: Build
uses: joerdav/[email protected]
with:
task: build-docs
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_SA_KEY }}'
- id: 'deploy'
uses: 'google-github-actions/deploy-appengine@v2'
with:
project_id: ${{ secrets.GCP_PROJECT }}
working_directory: ./doc
# Example of using the output
- id: 'test'
run: 'curl "${{ steps.deploy.outputs.url }}"'