Обновить .gitea/workflows/deploy.yml
All checks were successful
Deploy Nuxt App / deploy (push) Successful in 1m47s

This commit is contained in:
2025-06-19 18:08:01 +00:00
parent 2ef59fee78
commit 2909160b17

View File

@ -26,7 +26,7 @@ jobs:
- name: Upload files via Gitea API - name: Upload files via Gitea API
env: env:
GITEA_API: "https://gitea.miduway.space/api/v1/repos/levis/ebook/raw/production" GITEA_API: "https://gitea.miduway.space/api/v1/repos/levis/ebook/raw/main"
GITEA_TOKEN: ${{ secrets.TOKEN }} GITEA_TOKEN: ${{ secrets.TOKEN }}
run: | run: |
for file in Dockerfile docker-compose.yml; do for file in Dockerfile docker-compose.yml; do
@ -34,11 +34,11 @@ jobs:
-H "Authorization: token $TOKEN" \ -H "Authorization: token $TOKEN" \
-H "Content-Type: text/plain" \ -H "Content-Type: text/plain" \
-T "$file" \ -T "$file" \
"$GITEA_API/$file?branch=production" "$GITEA_API/$file?branch=main"
done done
curl -X PUT \ curl -X PUT \
-H "Authorization: token $TOKEN" \ -H "Authorization: token $TOKEN" \
-H "Content-Type: application/gzip" \ -H "Content-Type: application/gzip" \
-T "deploy.tar.gz" \ -T "deploy.tar.gz" \
"$GITEA_API/deploy.tar.gz?branch=production" "$GITEA_API/deploy.tar.gz?branch=main"