diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index b57a760..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Release - -on: - push: - branches: - - main - -jobs: - release: - name: Release with GoReleaser - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - fetch-depth: 0 # Fetch all history for all branches and tags - - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: '1.22.3' - - - name: Determine Version - uses: gittools/actions/gitversion/execute@v0.9.7 - - name: Display SemVer - run: | - echo "SemVer: $GITVERSION_SEMVER" && echo "$version" && echo "$major.$minor.$patch" - - name: Create git tag - run: | - git tag $GITVERSION_SEMVER - - name: Push git tag - run: git push origin $GITVERSION_SEMVER - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v6 - with: - # either 'goreleaser' (default) or 'goreleaser-pro' - distribution: goreleaser - version: "latest" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}