File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -14,22 +14,29 @@ jobs:
1414 # Need this to get version number from last tag
1515 fetch-depth : 0
1616
17+ - name : Install uv
18+ uses : astral-sh/setup-uv@v5
19+
1720 - name : Regenerate example
1821 run : |
19- pipx run copier copy --data-file example-answers.yml --vcs-ref=HEAD . example
22+ git init /tmp/example
23+ uvx copier copy --data-file example-answers.yml --vcs-ref=HEAD . /tmp/example
2024
2125 - name : Rewrite copier answers
2226 run : |
23- sed -i 's|_src_path: .|_src_path: https://github.com/DiamondLightSource/python-copier-template.git|' example/.copier-answers.yml
27+ sed -i 's|_src_path: .|_src_path: https://github.com/DiamondLightSource/python-copier-template.git|' /tmp/ example/.copier-answers.yml
2428
29+ - name : Update the lockfile
30+ run : uv lock --directory /tmp/example
31+
2532 - name : Publish example
2633 # We pin to the SHA, not the tag, for security reasons.
2734 # https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
2835 uses : peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
2936 with :
3037 deploy_key : ${{ secrets.EXAMPLE_DEPLOY_KEY }}
31- publish_dir : example
38+ publish_dir : /tmp/ example
3239 external_repository : DiamondLightSource/python-copier-template-example
33- publish_branch : main
40+ publish_branch : example-test
3441 enable_jekyll : true # don't put a .nojekyll
35- exclude_assets : ' ' # default would exclude .github
42+ exclude_assets : ' .git ' # default would exclude .github
Original file line number Diff line number Diff line change 2828
2929 example :
3030 needs : test
31- if : github.ref_name == 'main'
3231 uses : ./.github/workflows/_example.yml
3332 secrets :
3433 EXAMPLE_DEPLOY_KEY : ${{ secrets.EXAMPLE_DEPLOY_KEY }}
You can’t perform that action at this time.
0 commit comments