mirror of
https://github.com/mcuadros/ascode
synced 2024-11-23 01:11:59 +01:00
41 lines
985 B
YAML
41 lines
985 B
YAML
name: Documentation
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
jobs:
|
|
gh-pages:
|
|
env:
|
|
GOPATH: ${{ github.workspace }}
|
|
WORKING_PATH: ${{ github.workspace }}/src/github.com/${{ github.repository }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: ${{env.WORKING_PATH}}
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16.x
|
|
|
|
- name: Setup Hugo
|
|
uses: peaceiris/actions-hugo@v2
|
|
with:
|
|
hugo-version: '0.68.2'
|
|
extended: true
|
|
|
|
- name: Setup Outline
|
|
run: go get github.com/mcuadros/outline
|
|
|
|
- name: Hugo Build
|
|
run: make hugo-build
|
|
working-directory: ${{env.WORKING_PATH}}
|
|
|
|
- name: Push to gh-pages
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: src/github.com/${{ github.repository }}/_site/public
|
|
cname: ascode.run |