release #38
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: release | ||
|
Check failure on line 1 in .github/workflows/release.yml
|
||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
| jobs: | ||
| on-success: | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| if: ${{ always() && needs.release.result == 'success' }} | ||
| steps: | ||
| - name: Notification Feishu | ||
| uses: whatwewant/action-robot-feishu@v0.0.13 | ||
| with: | ||
| url: ${{ secrets.DOCKER_VERSION_FEISHU_BOT_WEBHOOK_URL }} | ||
| title: '✅ Release:${{ github.repository }}' | ||
| text: | | ||
| 分支: ${{ github.ref }} | ||
| 提交信息: ${{ github.event.head_commit.message }} | ||
| 提交人: ${{ github.actor }} | ||
| 状态: 构建成功(https://github.com/${{ github.repository }}/actions/runs/${{ github.run.id }}) | ||
| on-failure: | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| if: ${{ always() && needs.release.result == 'failure' }} | ||
| steps: | ||
| - name: Notification Feishu | ||
| uses: whatwewant/action-robot-feishu@v0.0.13 | ||
| with: | ||
| url: ${{ secrets.DOCKER_VERSION_FEISHU_BOT_WEBHOOK_URL }} | ||
| title: '❌ Release:${{ github.repository }}' | ||
| text: | | ||
| 分支: ${{ github.ref }} | ||
| 提交信息: ${{ github.event.head_commit.message }} | ||
| 提交人: ${{ github.actor }} | ||
| 状态: 构建失败(https://github.com/${{ github.repository }}/actions/runs/${{ github.run.id }}) | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Set up Go | ||
| uses: actions/setup-go@v3 | ||
| with: | ||
| go-version: 1.24.x | ||
| - name: Run GoReleaser | ||
| uses: goreleaser/goreleaser-action@v4 | ||
| with: | ||
| version: latest | ||
| args: release --clean | ||
| env: | ||
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||