fix clone-page step with proper ref point

This commit is contained in:
Colgrave 2025-02-01 20:57:25 -05:00
parent 273d4ab6dd
commit b4dbe7e166

View File

@ -25,15 +25,14 @@ clone:
- name: clone-page
image: docker.io/woodpeckerci/plugin-git
settings:
partial: false
remote: https://codeberg.org/<YOUR_USERNAME>/<YOUR_PAGE_REPO>.git
ref: HEAD
path: _site
# clone the pages branch
# - name: clone-page
# image: woodpeckerci/plugin-git
# settings:
# branch: pages
# partial: false
# path: _site
steps:
@ -52,7 +51,7 @@ steps:
image: docker.io/appleboy/drone-git-push:latest
settings:
ssh_key:
from_secret: codeberg_ssh
from_secret: ssh_key
# push to your static page repository, change it to your need
remote: git@codeberg.org:<YOUR_USERNAME>/pages.git
# if you are using a branch rather than a repo, change `remote` setting