Skip to content

Commit caafcb5

Browse files
committed
增加自动发布
1 parent c94e636 commit caafcb5

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/build-multi-platform.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,33 @@ jobs:
109109
name: tavily-proxy-${{ matrix.goos }}-${{ matrix.goarch }}
110110
path: ${{ steps.build.outputs.archive_path }}
111111
if-no-files-found: error
112+
113+
publish-release:
114+
name: Publish Release Assets
115+
runs-on: ubuntu-latest
116+
needs: build-binary
117+
if: startsWith(github.ref, 'refs/tags/v')
118+
permissions:
119+
contents: write
120+
steps:
121+
- name: Download all binary artifacts
122+
uses: actions/download-artifact@v4
123+
with:
124+
pattern: tavily-proxy-*
125+
path: release-assets
126+
merge-multiple: true
127+
128+
- name: Generate checksums
129+
run: |
130+
cd release-assets
131+
sha256sum *.tar.gz > checksums.txt
132+
133+
- name: Publish to GitHub Releases
134+
uses: softprops/action-gh-release@v2
135+
with:
136+
tag_name: ${{ github.ref_name }}
137+
generate_release_notes: true
138+
files: |
139+
release-assets/*.tar.gz
140+
release-assets/checksums.txt
141+
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)