Skip to content

feat: update python template ci #94

feat: update python template ci

feat: update python template ci #94

Workflow file for this run

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@v3
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@v3
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@v3
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