-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (83 loc) · 3.85 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Synchronize the example with the template
on:
push:
branches: [ main ]
jobs:
example-cxx:
runs-on: ubuntu-latest
env:
CXX_PROJECT_NAME: example-cxx
steps:
- uses: actions/checkout@v4
- name: Generate cxx example from template/cxx
uses: cargo-generate/[email protected]
with:
name: ${{ env.CXX_PROJECT_NAME }}
template: template/cxx
arguments: "--template-values-file .github/workflows/template_values.toml --verbose"
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.GH_EXAMPLE_DEPLOY_SECRET }}
external_repository: x-pt/${{ env.CXX_PROJECT_NAME }}
publish_branch: main
publish_dir: ./${{ env.CXX_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
example-go:
runs-on: ubuntu-latest
env:
GO_PROJECT_NAME: example-go
steps:
- uses: actions/checkout@v4
- name: Generate go example from template/go
uses: cargo-generate/[email protected]
with:
name: ${{ env.GO_PROJECT_NAME }}
template: template/go
arguments: "--template-values-file .github/workflows/template_values.toml --verbose"
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.GH_EXAMPLE_DEPLOY_SECRET }}
external_repository: x-pt/${{ env.GO_PROJECT_NAME }}
publish_branch: main
publish_dir: ./${{ env.GO_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: Go Sample"
force_orphan: true
example-py:
runs-on: ubuntu-latest
env:
PY_PROJECT_NAME: example-py
steps:
- uses: actions/checkout@v4
- name: Generate python example from template/py
uses: cargo-generate/[email protected]
with:
name: ${{ env.PY_PROJECT_NAME }}
template: template/py
arguments: "--template-values-file .github/workflows/template_values.toml --verbose"
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.GH_EXAMPLE_DEPLOY_SECRET }}
external_repository: x-pt/${{ env.PY_PROJECT_NAME }}
publish_branch: main
publish_dir: ./${{ env.PY_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: Py Sample"
force_orphan: true