@@ -80,48 +80,24 @@ jobs:
8080 echo "⚠️ No RELEASE_NOTES.md found, generating basic release notes"
8181
8282 # Generate basic release notes as fallback
83- cat > RELEASE_NOTES.md << 'EOF'
84- ## 🚀 GH OBS Helper Release ${{ steps.tag.outputs.tag }}
85-
86- ### Release Information
87- This is an automated release of the GH OBS Helper.
88-
89- ### 🛠️ Usage
90- ```yaml
91- - name: Upload to OBS
92- id: upload
93- uses: diverger/gh-obs-helper@${{ steps.tag.outputs.tag }}
94- with:
95- access_key: ${{ secrets.OBS_ACCESS_KEY }}
96- secret_key: ${{ secrets.OBS_SECRET_KEY }}
97- region: 'cn-north-4'
98- bucket: 'my-bucket'
99- operation: 'upload'
100- local_path: 'dist/**/*'
101- obs_path: 'releases/${{ steps.tag.outputs.tag }}/'
102- public_read: true
103-
104- - name: Use uploaded file URLs
105- run: |
106- echo "First file URL: ${{ steps.upload.outputs.first_upload_url }}"
107- echo "All URLs: ${{ steps.upload.outputs.upload_urls }}"
108- ```
109-
110- ### 📋 Available Operations
111- - `upload`: Upload files to OBS
112- - `download`: Download files from OBS
113- - `sync`: Synchronize local and OBS directories
114- - `create-bucket`: Create a new OBS bucket
115- - `delete-bucket`: Delete an OBS bucket
116-
117- ### 📋 Parameters
118- - `local_path`: Local file/directory paths (supports wildcards)
119- - `obs_path`: OBS object path/prefix
120- - `operation`: The operation to perform
121-
122- ### 📝 Note
123- For detailed release notes, create a `RELEASE_NOTES.md` file in the repository root before creating the release tag.
124- EOF
83+ echo "## 🚀 GH OBS Helper Release ${{ steps.tag.outputs.tag }}" > RELEASE_NOTES.md
84+ echo "" >> RELEASE_NOTES.md
85+ echo "### Release Information" >> RELEASE_NOTES.md
86+ echo "This is an automated release of the GH OBS Helper." >> RELEASE_NOTES.md
87+ echo "" >> RELEASE_NOTES.md
88+ echo "### Available Operations" >> RELEASE_NOTES.md
89+ echo "- upload: Upload files to OBS" >> RELEASE_NOTES.md
90+ echo "- download: Download files from OBS" >> RELEASE_NOTES.md
91+ echo "- sync: Synchronize local and OBS directories" >> RELEASE_NOTES.md
92+ echo "- create-bucket: Create a new OBS bucket" >> RELEASE_NOTES.md
93+ echo "- delete-bucket: Delete an OBS bucket" >> RELEASE_NOTES.md
94+ echo "" >> RELEASE_NOTES.md
95+ echo "### New Features" >> RELEASE_NOTES.md
96+ echo "- Automatic URL generation for uploaded files" >> RELEASE_NOTES.md
97+ echo "- Support for both public and private file URLs" >> RELEASE_NOTES.md
98+ echo "- JSON array and convenience single URL outputs" >> RELEASE_NOTES.md
99+ echo "" >> RELEASE_NOTES.md
100+ echo "For detailed release notes, create a RELEASE_NOTES.md file before creating the release tag." >> RELEASE_NOTES.md
125101 fi
126102
127103 - name : Create GitHub Release
0 commit comments