Skip to content

Commit 1725bb0

Browse files
authored
Update release.yml
1 parent 8cda1a5 commit 1725bb0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
with:
14-
repository: eltos/accelerated-jacow
1514
path: accelerated-jacow
1615
- uses: actions/checkout@v4
1716
with:
1817
repository: eltos/typst-packages
1918
path: typst-packages
19+
token: ${{ secrets.ACTIONS_GITHUB_TOKEN }}
2020
- name: Extract version
2121
run: |
2222
VERSION=$(awk -F'= *' '/^version/{gsub(/"/,"",$2);print $2}' accelerated-jacow/typst.toml)
@@ -34,5 +34,13 @@ jobs:
3434
git config user.email "[email protected]"
3535
git add packages/preview/accelerated-jacow/$VERSION/
3636
git commit -m "accelerated-jacow:$VERSION"
37+
- name: Push
38+
run: |
39+
# Setup SSH
40+
mkdir -p ~/.ssh
41+
echo "{{ secrets.ELTOS_TYPST_PACKAGES_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
42+
chmod 600 ~/.ssh/id_ed25519
43+
ssh-keyscan github.com >> ~/.ssh/known_hosts
44+
# Push
3745
git config push.autoSetupRemote true
38-
git push
46+
git push --force

0 commit comments

Comments
 (0)