35 lines
893 B
YAML
35 lines
893 B
YAML
name: Documentation
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
name: x86_64-unknown-linux-gnu
|
|
runs-on: ubuntu-latest
|
|
if: github.ref != 'refs/heads/main'
|
|
steps:
|
|
- name: 'checkout'
|
|
uses: actions/checkout@v2
|
|
|
|
- name: 'build'
|
|
uses: shalzz/zola-deploy-action@v0.13.0
|
|
env:
|
|
PAGES_BRANCH: gh-pages
|
|
BUILD_DIR: /home/runner/work/ff-zola/ff-zola/docs/
|
|
TOKEN: ${{ secrets.TOKEN }}
|
|
build_and_deploy:
|
|
runs-on: ubuntu-latest
|
|
if: github.ref == 'refs/heads/main'
|
|
steps:
|
|
- name: Display the path
|
|
run: pwd
|
|
shell: bash
|
|
- name: 'checkout'
|
|
uses: actions/checkout@v2
|
|
- name: 'build and deploy'
|
|
uses: shalzz/zola-deploy-action@v0.13.0
|
|
env:
|
|
PAGES_BRANCH: main
|
|
BUILD_DIR: ./docs
|
|
TOKEN: ${{ secrets.PUBLIC_TOKEN }}
|
|
REPOSITORY: dat-adi/ff-zola
|