File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,14 @@ jobs:
28
28
poetry install -E ghp-compiled
29
29
- name : Compile the courses
30
30
run : |
31
- for slug in pyladies mi-pyt meta lessons; do
32
- poetry run python -m naucse_render compile _compiled/$slug --slug $slug \
31
+ poetry run python -m naucse_render compile _compiled \
33
32
--edit-repo-url https://github.com/${{ github.repository }} \
34
- --edit-repo-branch main
35
- done
36
- - if : ${{ github.ref == 'refs/heads/main' }}
33
+ --edit-repo-branch ${{ github.ref_name }}
34
+ - if : ${{ startsWith(github.ref, 'refs/heads/') }}
37
35
name : Publish compiled courses
38
36
run : |
39
- git fetch origin compiled || :
40
- poetry run python -m ghp_import -m "Compiled" -b compiled --push _compiled/
37
+ git fetch origin compiled/${{ github.ref_name }} || :
38
+ poetry run python -m ghp_import -m "Compiled" -b compiled/${{ github.ref_name }} --push _compiled/
41
39
curl -H 'Content-Type: application/json' \
42
40
--data '{"repository": "https://github.com/${{ github.repository }}", "branch": "compiled"}' \
43
41
https://hooks.nauc.se/trigger
You can’t perform that action at this time.
0 commit comments