-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.37 KB
/
cd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Synchronize the example with the template
on:
push:
branches: [ main ]
jobs:
cxx_example:
runs-on: ubuntu-latest
env:
PROJECT_NAME: example
steps:
-
name: Checkout repository
uses: actions/checkout@v4
-
name: Run cargo generate
uses: cargo-generate/[email protected]
with:
name: ${{ env.PROJECT_NAME }}
subfolder: template/cxx
template_values_file: .github/workflows/template_values.toml
-
name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.GH_EXAMPLE_DEPLOY_SECRET }}
external_repository: x-pt/${{ env.PROJECT_NAME }}
publish_branch: main
publish_dir: ./${{ env.PROJECT_NAME }}
# Set exclude_assets to empty for including the .github directory to deployment assets.
exclude_assets: ''
enable_jekyll: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
full_commit_message: "ci: :art: Cxx Sample"
force_orphan: true