Update .gitea/workflows/publish.yaml
Some checks failed
CI Hugo Publish / build-and-deploy (push) Failing after 20s
Some checks failed
CI Hugo Publish / build-and-deploy (push) Failing after 20s
This commit is contained in:
parent
dc4dbb8343
commit
54b6804061
@ -12,6 +12,9 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
|
||||
- name: Set up SSH
|
||||
run: |
|
||||
@ -26,22 +29,20 @@ jobs:
|
||||
find output -mindepth 1 -not -regex "^.*\/.git\/.*" -delete
|
||||
|
||||
- name: Build site with Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: '0.97.0'
|
||||
extended: true
|
||||
hugo-version: '0.119.0'
|
||||
# extended: true
|
||||
|
||||
- name: Add commit hash to index.html
|
||||
run: |
|
||||
sed -i 's/\[commit\]/\[${{ github.sha::0:7 }}\]/g' output/index.html
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
|
||||
- name: Push changes to gitea-pages branch
|
||||
uses: ad-m/github-push-action@v0.6.0
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
with:
|
||||
branch: gitea-pages
|
||||
github_token: ${{ secrets.token }}
|
||||
force: true
|
||||
message: "Drone build ${{ github.sha::0:7 }}"
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./public
|
||||
|
||||
- name: Delete Kubernetes pod
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user