更新 .gitea/workflows/demo.yaml
自动流水线示例 / build (push) Successful in 2m16s
Details
自动流水线示例 / deploy (push) Successful in 16s
Details
自动流水线示例 / 检查 (push) Successful in 9s
Details
自动流水线示例 / 制品上传 (ubuntu-latest, a) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, b) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, c) (push) Has been skipped
Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 18s
Details
自动流水线示例 / download (push) Failing after 54s
Details
自动流水线示例 / build (push) Successful in 2m16s
Details
自动流水线示例 / deploy (push) Successful in 16s
Details
自动流水线示例 / 检查 (push) Successful in 9s
Details
自动流水线示例 / 制品上传 (ubuntu-latest, a) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, b) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, c) (push) Has been skipped
Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 18s
Details
自动流水线示例 / download (push) Failing after 54s
Details
发布生产
This commit is contained in:
parent
a184a3d636
commit
c4470b41eb
|
|
@ -245,7 +245,7 @@ jobs:
|
||||||
git config user.email "actions@github.com"
|
git config user.email "actions@github.com"
|
||||||
git tag -a ${{ steps.vars.outputs.tag }} -m "Automated release"
|
git tag -a ${{ steps.vars.outputs.tag }} -m "Automated release"
|
||||||
# git push origin ${{ steps.vars.outputs.tag }}
|
# git push origin ${{ steps.vars.outputs.tag }}
|
||||||
# 前往你的 GitHub: https://github.com/settings/tokens;生成一个 classic token(建议)或 fine-grained token;选择至少:repo 权限
|
# 前往你的 GitHub: https://github.com/settings/tokens;生成一个classic token-建议 或 fine-grained token;选择至少:repo 权限
|
||||||
# git push https://x-access-token:${PAT_PUSH}@github.com/${REPO}.git "$TAG"
|
# git push https://x-access-token:${PAT_PUSH}@github.com/${REPO}.git "$TAG"
|
||||||
git push https://${GITEA_USER}:${GITEA_PAT}@${GITEA_HOST}/${GITEA_REPO}.git "$TAG"
|
git push https://${GITEA_USER}:${GITEA_PAT}@${GITEA_HOST}/${GITEA_REPO}.git "$TAG"
|
||||||
- name: 获取跨job上游job的输出变量值
|
- name: 获取跨job上游job的输出变量值
|
||||||
|
|
@ -340,14 +340,14 @@ jobs:
|
||||||
-H "Authorization: token ${{ secrets.GITEA_PAT }}" \
|
-H "Authorization: token ${{ secrets.GITEA_PAT }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d @- <<EOF
|
-d @- <<EOF
|
||||||
{
|
{
|
||||||
"tag_name": "${{ env.TAG_NAME }}",
|
"tag_name": "${{ env.TAG_NAME }}",
|
||||||
"name": "Release ${{ env.TAG_NAME }}",
|
"name": "Release ${{ env.TAG_NAME }}",
|
||||||
"body": "This release was created automatically by GitHub Actions.",
|
"body": "This release was created automatically by GitHub Actions.",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
"prerelease": false
|
"prerelease": false
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
echo "$response" | tee gitea-release-response.json
|
echo "$response" | tee gitea-release-response.json
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue