1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-23 01:11:59 +01:00
ascode/.github/workflows/gh-pages.yml
2020-03-30 00:59:12 +02:00

41 lines
990 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-beta
with:
go-version: 1.14.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