Skip to content

Commit

Permalink
release_body
Browse files Browse the repository at this point in the history
  • Loading branch information
Larvan2 committed Sep 29, 2023
1 parent e8919e0 commit f1c5e88
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,21 +257,29 @@ jobs:
tag: latest
deleteOnlyFromDrafts: false

- run: |
- name: Create Release Body
id: create_release_body
run: |
cat > release.txt << 'EOF'
Release update at ${{ env.BUILDTIME }}
更新时间 ${{ env.BUILDTIMECN }}
EOF
- name: Release and upload assets
r=$(cat release.txt)
r="${r//'%'/'%25'}"
r="${r//$'\n'/'%0A'}"
r="${r//$'\r'/'%0D'}"
echo "RELEASE_BODY=$r" >> $GITHUB_ENV
- name: Create and Upload Release
id: upload_release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
release_name: ${{ env.RELEASE_NAME }}
release_name: Release ${{ env.BUILDTIME }}
tag: latest
file_glob: true
file: ./publish/*
body: release.txt
body: ${{ env.RELEASE_BODY }}

- name: Git push assets to "release" branch
run: |
Expand Down

0 comments on commit f1c5e88

Please sign in to comment.