File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 1- name : Release
1+ name : Sync with eltos/typst-packages
22
33on :
44 push :
@@ -15,12 +15,13 @@ jobs:
1515 - uses : actions/checkout@v4
1616 with :
1717 repository : eltos/typst-packages
18+ ssh-key : ${{ secrets.ELTOS_TYPST_PACKAGES_DEPLOY_KEY }}
1819 path : typst-packages
1920 - name : Extract version
2021 run : |
2122 VERSION=$(awk -F'= *' '/^version/{gsub(/"/,"",$2);print $2}' accelerated-jacow/typst.toml)
2223 echo "VERSION=$VERSION" >> "$GITHUB_ENV"
23- - name : Copy & commit
24+ - name : Copy, commit & push
2425 run : |
2526 # Copy
2627 cd typst-packages
3536 git config user.email "[email protected] " 3637 git add packages/preview/accelerated-jacow/$VERSION/
3738 git commit -m "accelerated-jacow:$VERSION"
38- - name : Push
39- run : |
40- # Setup SSH
41- mkdir -p ~/.ssh
42- echo "{{ secrets.ELTOS_TYPST_PACKAGES_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
43- chmod 600 ~/.ssh/id_ed25519
44- ssh-keyscan github.com >> ~/.ssh/known_hosts
45- # Push
46- cd typst-packages
47- git config --unset-all http.https://github.com/.extraheader
4839 git config push.autoSetupRemote true
4940 git push --force
You can’t perform that action at this time.
0 commit comments