diff --git a/.github/workflows/gh-release.yaml b/.github/workflows/gh-release.yaml deleted file mode 100644 index 6636054d..00000000 --- a/.github/workflows/gh-release.yaml +++ /dev/null @@ -1,54 +0,0 @@ -name: Create Github Release - -on: - push: - branches: - - main - - test - - dev - - paths-ignore: - - 'docs/**' - - '**.md' - - '.github/workflows/build.yaml' - - '.github/workflows/release.yaml' - - '.github/workflows/publish-to-docs.yaml' - - -permissions: - id-token: write - contents: write - -jobs: - prepare: - runs-on: ubuntu-latest - outputs: - version: ${{ steps.extract_version.outputs.version }} - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Extract version from constants.go - id: extract_version - run: | - VERSION=$(grep 'Version = ' ./pkg/config/constants.go | awk '{print $NF}' | tr -d '"') - echo "Extracted version: $VERSION" - echo "::set-output name=version::$VERSION" - - release: - needs: prepare - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Create Release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ needs.prepare.outputs.version }} - release_name: Release ${{ needs.prepare.outputs.version }} - body_path: ./RELEASE_NOTES.md - draft: false - prerelease: false -