更新 .gitea/workflows/demo.yaml
自动流水线示例 / build (push) Failing after 43s Details
自动流水线示例 / deploy (push) Has been skipped Details
自动流水线示例 / 检查 (push) Has been skipped 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 17s Details
自动流水线示例 / download (push) Failing after 31s Details

发布release
This commit is contained in:
xiehaijun 2025-07-27 13:03:47 +00:00
parent 97b5e15246
commit bae4b6363d
1 changed files with 15 additions and 1 deletions

View File

@ -188,7 +188,7 @@ jobs:
runs-on: ${{ matrix.runs-on }}
steps:
- name: Create a File
run: echo "hello from ${{ matrix.runs-on }}" > file-${{ matrix.runs-on }}.txt
run: echo "$(TZ=+8 date '+%Y%m%d%H%M%S') hello from ${{ matrix.runs-on }}" > file-${{ matrix.runs-on }}.txt
- name: Upload Artifact
uses: actions/upload-artifact@v3 #github公开版可以用v4
with:
@ -229,3 +229,17 @@ jobs:
done
cd ..
ls -alh ./release/
echo "获取github的环境变量: https://graphite.dev/guides/github-actions-variables ${{ GITHUB_REPOSITORY }} "
echo "获取gitea: ${{ gitea.repository }}"
- name: 上传Release
uses: softprops/action-gh-release@v2
#if: github.ref_type == 'tag'
# body_path: ${{ github.workspace }}-CHANGELOG.txt # 加载文本的路径,用于传达此版本中的显著变化
# repository: my_gh_org/my_gh_repo
# token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
# name: 发布名称。默认为标签名称
# tag_name: 标签名称。默认为github.ref_name
with:
files: |
*.txt
*.sha256