Edit .onedev-buildspec.yml
This commit is contained in:
@@ -94,7 +94,7 @@ jobs:
|
|||||||
- type: CommandStep
|
- type: CommandStep
|
||||||
name: Release to Gitea
|
name: Release to Gitea
|
||||||
runInContainer: true
|
runInContainer: true
|
||||||
image: erriss/erris-build-tools:V0.7
|
image: erriss/erris-build_tools:V0.7
|
||||||
interpreter:
|
interpreter:
|
||||||
type: DefaultInterpreter
|
type: DefaultInterpreter
|
||||||
commands: |
|
commands: |
|
||||||
@@ -102,7 +102,7 @@ jobs:
|
|||||||
RELEASE_JSON=$(printf '{"tag_name":"v1.0.%s","target_commitish":"main","name":"Release v1.0.%s","body":"Automated build from OneDev","draft":false,"prerelease":false}' "$ONEDEV_BUILD_NUMBER" "$ONEDEV_BUILD_NUMBER")
|
RELEASE_JSON=$(printf '{"tag_name":"v1.0.%s","target_commitish":"main","name":"Release v1.0.%s","body":"Automated build from OneDev","draft":false,"prerelease":false}' "$ONEDEV_BUILD_NUMBER" "$ONEDEV_BUILD_NUMBER")
|
||||||
|
|
||||||
curl -X 'POST' \
|
curl -X 'POST' \
|
||||||
"https://gitea.anfer.fr/api/v1/repos/owner/repo/releases" \
|
"https://gitea.anfer.fr/api/v1/repos/anfer/OpenEngine/releases" \
|
||||||
-H "Authorization: token @secret:Gitea@" \
|
-H "Authorization: token @secret:Gitea@" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d "$RELEASE_JSON" > release_info.json
|
-d "$RELEASE_JSON" > release_info.json
|
||||||
@@ -112,7 +112,7 @@ jobs:
|
|||||||
|
|
||||||
# 3. Upload your binary (oe_editor)
|
# 3. Upload your binary (oe_editor)
|
||||||
curl -X 'POST' \
|
curl -X 'POST' \
|
||||||
"https://gitea.anfer.fr/api/v1/repos/owner/repo/releases/$RELEASE_ID/assets?name=oe_editor" \
|
"https://gitea.anfer.fr/api/v1/repos/anfer/OpenEngine/releases/$RELEASE_ID/assets?name=oe_editor" \
|
||||||
-H "Authorization: token @secret:Gitea@" \
|
-H "Authorization: token @secret:Gitea@" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
--data-binary=@project_path@/editor/oe_editor
|
--data-binary=@project_path@/editor/oe_editor
|
||||||
|
|||||||
Reference in New Issue
Block a user