Skip to content

Commit 0351971

Browse files
author
Saturn745
committed
Update .forgejo/workflows/retype-action.yaml
1 parent a90f9e8 commit 0351971

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.forgejo/workflows/retype-action.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,34 @@ jobs:
1414
- name: Checkout source
1515
uses: https://code.forgejo.org/actions/checkout@v4
1616

17-
- name: Build with Retype
18-
uses: https://github.com/retypeapp/action-build@v3
19-
with:
20-
output: _build/
17+
- name: Build site with Retype
18+
uses: retypeapp/action-build@latest
19+
id: build1
2120

2221
- name: Setup SSH key
2322
run: |
2423
mkdir -p ~/.ssh
25-
echo "${{ secrets.THE_MACHINE_PRIV }}" > ~/.ssh/id_rsa
24+
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
2625
chmod 600 ~/.ssh/id_rsa
2726
ssh-keyscan codeberg.org >> ~/.ssh/known_hosts
2827
shell: bash
2928

3029
- name: Publish to Codeberg Pages
30+
shell: bash
31+
env:
32+
RETYPE_OUTPUT: ${{ steps.build1.outputs.retype-output-path }}
3133
run: |
3234
git config --global user.email "[email protected]"
3335
git config --global user.name "The Machine"
3436
37+
echo "Cloning Pages repo..."
3538
git clone --depth=1 [email protected]:LuaLink/pages.git _site
39+
40+
echo "Replacing contents..."
3641
rm -rf _site/*
37-
cp -r _build/* _site/
42+
cp -r "$RETYPE_OUTPUT"/* _site/
3843
3944
cd _site
4045
git add .
41-
git commit -m "Update site" || echo "No changes"
46+
git commit -m "Update site" || echo "No changes to commit"
4247
git push origin HEAD:master

0 commit comments

Comments
 (0)