chore: rename pre-commit file #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Synchronize the example with the template | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
cxx_example: | |
runs-on: ubuntu-latest | |
env: | |
PROJECT_NAME: example | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Generate Example from Template | |
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 |