Skip to content

Commit 72e7220

Browse files
authored
Update release.yml
1 parent 6b6108e commit 72e7220

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Sync with eltos/typst-packages
22

33
on:
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
@@ -35,15 +36,5 @@ jobs:
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

0 commit comments

Comments
 (0)