File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments