mirror of
https://github.com/containers/youki
synced 2025-11-10 02:48:42 +01:00
* chore(ci): Update ci os ubuntu-20.04->ubuntu-24.04 except docker-in-docker Signed-off-by: sou1118 <hello@kattyan.dev> * chore(ci): Update ci os ubuntu-22.04->ubuntu-24.04 Signed-off-by: sou1118 <hello@kattyan.dev> * chore(ci): Add CRIU PPA Signed-off-by: sou1118 <hello@kattyan.dev> * chore(ci): Disable AppArmor restrictions Signed-off-by: sou1118 <hello@kattyan.dev> --------- Signed-off-by: sou1118 <hello@kattyan.dev>
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: 📓 Deploy the documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
changes:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 15
|
|
outputs:
|
|
dirs: ${{ steps.filter.outputs.changes }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dorny/paths-filter@v2
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
docs: docs/**
|
|
deploy:
|
|
needs: [changes]
|
|
if: ${{ !contains(needs.changes.outputs.dirs, '[]') }}
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 15
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: "latest"
|
|
- name: Build mdbook
|
|
working-directory: ./docs
|
|
run: mdbook build
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./docs/book
|