mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
598b87196a
When removing `concurrency`, I overlooked this case where we want to serialize deployments. Queuing deployments also doesn't give us much. I switched from using an action for this to using built-in support.
26 lines
565 B
YAML
26 lines
565 B
YAML
name: Site
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths: ["site/**"]
|
|
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@master
|
|
env:
|
|
BUILD_DIR: site
|
|
BUILD_ONLY: true
|
|
- name: Deploy
|
|
if: ${{ success() }}
|
|
uses: JamesIves/github-pages-deploy-action@4.1.0
|
|
with:
|
|
branch: gh-pages
|
|
folder: site/public
|