Обновить .gitea/workflows/deploy.yml
All checks were successful
Deploy Nuxt App / deploy (push) Successful in 1m47s
All checks were successful
Deploy Nuxt App / deploy (push) Successful in 1m47s
This commit is contained in:
@ -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"
|
||||||
|
Reference in New Issue
Block a user