更新 .gitea/workflows/demo.yaml
自动流水线示例 / build (push) Successful in 2m23s
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 15s
Details
自动流水线示例 / download (push) Successful in 48s
Details
自动流水线示例 / build (push) Successful in 2m23s
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 15s
Details
自动流水线示例 / download (push) Successful in 48s
Details
发布tag,发布生产
This commit is contained in:
parent
ceb5118fab
commit
bbb6ec199a
|
|
@ -229,11 +229,19 @@ jobs:
|
||||||
id: vars
|
id: vars
|
||||||
run: echo "tag=release-$(TZ='Asia/Shanghai' date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT # 包含$GITHUB_ENV 的作用域,全steps也可访问
|
run: echo "tag=release-$(TZ='Asia/Shanghai' date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT # 包含$GITHUB_ENV 的作用域,全steps也可访问
|
||||||
- name: 自定提交tag
|
- name: 自定提交tag
|
||||||
|
env:
|
||||||
|
GITEA_USER: xiehaijun
|
||||||
|
TAG: ${{ steps.vars.outputs.tag }}
|
||||||
|
GITEA_PAT: ${{ secrets.MY_APP_TOKEN }}
|
||||||
|
GITEA_REPO: xiehaijun/study-plan
|
||||||
|
GITEA_HOST: git.ewancle.com
|
||||||
run: |
|
run: |
|
||||||
git config user.name "github-actions"
|
git config user.name "github-actions[bot]"
|
||||||
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 }}
|
||||||
|
# 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"
|
||||||
- name: 获取跨job上游job的输出变量值
|
- name: 获取跨job上游job的输出变量值
|
||||||
run: echo "The tag from previous job is ${{ needs.upload.outputs.tag-name }}"
|
run: echo "The tag from previous job is ${{ needs.upload.outputs.tag-name }}"
|
||||||
- name: Download All Artifacts
|
- name: Download All Artifacts
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue