From bae4b6363d223b69b6fcb391aa8db023f03f980e Mon Sep 17 00:00:00 2001 From: xiehaijun Date: Sun, 27 Jul 2025 13:03:47 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/demo.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 发布release --- .gitea/workflows/demo.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index db3bf55..81e38be 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -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