1
1
Fork 0
mirror of https://github.com/mcuadros/ascode synced 2024-05-09 17:16:16 +02:00
ascode/.github/workflows/gh-pages.yml
2021-04-06 16:21:40 +02:00

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