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