Update .gitea/workflows/publish.yaml
Some checks failed
CI Hugo Publish / build-and-deploy (push) Failing after 16s
Some checks failed
CI Hugo Publish / build-and-deploy (push) Failing after 16s
This commit is contained in:
parent
c9330e68bf
commit
e562019b40
@ -8,7 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GITHUB_SERVER_URL: "https://git.ericxliu.me"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -16,13 +17,6 @@ jobs:
|
|||||||
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
|
||||||
|
|
||||||
- name: Set up SSH
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.ssh
|
|
||||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
|
|
||||||
chmod 600 ~/.ssh/id_rsa
|
|
||||||
ssh-keyscan -H git.ericxliu.me >> ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
- name: Build site with Hugo
|
- name: Build site with Hugo
|
||||||
uses: peaceiris/actions-hugo@v3
|
uses: peaceiris/actions-hugo@v3
|
||||||
with:
|
with:
|
||||||
@ -33,10 +27,9 @@ jobs:
|
|||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
deploy_key: ${{ secrets.SSH_KEY }}
|
||||||
publish_dir: ./public
|
publish_dir: ./public
|
||||||
|
|
||||||
- name: Delete Kubernetes pod
|
- name: Delete Kubernetes pod
|
||||||
|
Loading…
Reference in New Issue
Block a user