2022-01-01 10:31:18 +05:30
|
|
|
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
|
2022-01-01 12:10:19 +05:30
|
|
|
BUILD_DIR: ./docs/zola
|
2022-01-01 10:31:18 +05:30
|
|
|
TOKEN: ${{ secrets.TOKEN }}
|
|
|
|
build_and_deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.ref == 'refs/heads/main'
|
|
|
|
steps:
|
2022-01-01 11:42:01 +05:30
|
|
|
- name: Display the path
|
2022-01-01 11:44:02 +05:30
|
|
|
run: pwd
|
2022-01-01 11:42:01 +05:30
|
|
|
shell: bash
|
2022-01-01 10:31:18 +05:30
|
|
|
- name: 'checkout'
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: 'build and deploy'
|
|
|
|
uses: shalzz/zola-deploy-action@v0.13.0
|
|
|
|
env:
|
2022-01-01 12:10:19 +05:30
|
|
|
PAGES_BRANCH: docs
|
|
|
|
BUILD_DIR: ./docs/zola
|
2022-01-01 10:31:18 +05:30
|
|
|
TOKEN: ${{ secrets.PUBLIC_TOKEN }}
|
2022-01-01 10:49:32 +05:30
|
|
|
REPOSITORY: dat-adi/ff-zola
|