Update .gitea/workflows/publish.yaml
This commit is contained in:
@@ -9,10 +9,16 @@ jobs:
|
|||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Add SSH Key
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.SSH_KEY }}" > $HOME/.ssh/id_rsa
|
||||||
|
chmod 600 $HOME/.ssh/id_rsa
|
||||||
|
ssh-keyscan -H git.ericxliu.me >> $HOME/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
ssh-key: ${{ secrets.SSH_KEY }}
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
|||||||
Reference in New Issue
Block a user