mirror of
https://github.com/clap-rs/clap
synced 2025-01-07 18:28:48 +00:00
28 lines
605 B
YAML
28 lines
605 B
YAML
name: Site
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- site/**
|
|
- .github/workflows/site.yml
|
|
concurrency:
|
|
group: site
|
|
cancel-in-progress: true
|
|
jobs:
|
|
site:
|
|
name: Deploy site
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Build
|
|
uses: shalzz/zola-deploy-action@v0.14.1
|
|
env:
|
|
BUILD_DIR: site
|
|
BUILD_ONLY: true
|
|
- name: Deploy
|
|
if: ${{ success() }}
|
|
uses: JamesIves/github-pages-deploy-action@4.1.5
|
|
with:
|
|
branch: gh-pages
|
|
folder: site/public
|