File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,23 @@ jobs:
13
13
with :
14
14
# Need this to get version number from last tag
15
15
fetch-depth : 0
16
+ path : python-copier-template
17
+
18
+ - name : Install uv
19
+ uses : astral-sh/setup-uv@v5
16
20
17
21
- name : Regenerate example
18
22
run : |
19
- pipx run copier copy --data-file example-answers.yml --vcs-ref=HEAD . example
23
+ git init --initial-branch=main example
24
+ uvx copier copy --data-file python-copier-template/example-answers.yml --vcs-ref=HEAD python-copier-template example
20
25
21
26
- name : Rewrite copier answers
22
27
run : |
23
28
sed -i 's|_src_path: .|_src_path: https://github.com/DiamondLightSource/python-copier-template.git|' example/.copier-answers.yml
24
29
30
+ - name : Update the lockfile
31
+ run : uv sync --directory example
32
+
25
33
- name : Publish example
26
34
# We pin to the SHA, not the tag, for security reasons.
27
35
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
30
38
deploy_key : ${{ secrets.EXAMPLE_DEPLOY_KEY }}
31
39
publish_dir : example
32
40
external_repository : DiamondLightSource/python-copier-template-example
33
- publish_branch : main
41
+ publish_branch : example-test
34
42
enable_jekyll : true # don't put a .nojekyll
35
- exclude_assets : ' ' # default would exclude .github
43
+ exclude_assets : ' .git ' # default would exclude .github
Original file line number Diff line number Diff line change 28
28
29
29
example :
30
30
needs : test
31
- if : github.ref_name == 'main'
32
31
uses : ./.github/workflows/_example.yml
33
32
secrets :
34
33
EXAMPLE_DEPLOY_KEY : ${{ secrets.EXAMPLE_DEPLOY_KEY }}
You can’t perform that action at this time.
0 commit comments