diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 694a1f1..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,57 +0,0 @@ -name: Release - -on: - release: - types: [created] - -permissions: - contents: write - -jobs: - release: - name: Release - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - - name: Set up Go - uses: actions/setup-go@v6 - with: - go-version: '1.25' - - - name: Run tests - run: go test -v -race ./... - - - name: Run golangci-lint - uses: golangci/golangci-lint-action@v7 - with: - args: --timeout=5m - - - name: Build - run: go build -v ./... - - - name: Create release notes - id: release_notes - run: | - echo "## Installation" >> release_notes.md - echo "" >> release_notes.md - echo '```bash' >> release_notes.md - echo "go get github.com/mpyw/feature@${{ github.event.release.tag_name }}" >> release_notes.md - echo '```' >> release_notes.md - echo "" >> release_notes.md - echo "## What's Changed" >> release_notes.md - echo "" >> release_notes.md - echo "${{ github.event.release.body }}" >> release_notes.md - - - name: Update release - uses: softprops/action-gh-release@v2 - with: - body_path: release_notes.md - files: | - LICENSE - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}