modified: .gitea/workflows/deploy.yml
This commit is contained in:
@@ -11,17 +11,18 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Deploy to shared pages
|
- name: Deploy to shared pages
|
||||||
env:
|
|
||||||
OWNER: ${{ gitea.repository_owner }}
|
|
||||||
REPO: ${{ gitea.repository_name }}
|
|
||||||
run: |
|
run: |
|
||||||
|
set -e
|
||||||
|
OWNER="$(echo "$GITHUB_REPOSITORY" | cut -d/ -f1)"
|
||||||
|
REPO="$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)"
|
||||||
TARGET="/target/${OWNER}/${REPO}"
|
TARGET="/target/${OWNER}/${REPO}"
|
||||||
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v pages_root:/target \
|
-v pages_root:/target \
|
||||||
-v "$PWD":/src \
|
-v "$PWD":/src \
|
||||||
alpine:3.20 sh -lc '
|
alpine:3.20 sh -lc '
|
||||||
apk add --no-cache rsync >/dev/null &&
|
apk add --no-cache rsync >/dev/null
|
||||||
mkdir -p "'"$TARGET"'" &&
|
mkdir -p "'"$TARGET"'"
|
||||||
rsync -av --delete /src/ "'"$TARGET"'"/ \
|
rsync -av --delete /src/ "'"$TARGET"'"/ \
|
||||||
--exclude ".git" --exclude ".gitea"
|
--exclude ".git" --exclude ".gitea"
|
||||||
'
|
'
|
||||||
|
|||||||
Reference in New Issue
Block a user