diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b2c94c2ad8..b2e3655a00 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.20' check-latest: true - uses: technote-space/get-diff-action@v6.1.2 id: git_diff @@ -32,4 +32,19 @@ jobs: *.toml - run: | make build - if: env.GIT_DIFF \ No newline at end of file + if: env.GIT_DIFF + + release: + needs: build + runs-on: ubuntu-latest + steps: + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false \ No newline at end of file