diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml new file mode 100644 index 0000000..7624502 --- /dev/null +++ b/.github/workflows/go-release.yml @@ -0,0 +1,29 @@ +name: release + +on: + push: + tags: + - 'v*' + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + run: | + git version + git clone "${{ github.event.repository.html_url }}" /home/runner/work/KookBot/KookBot + git checkout "${{ github.ref }}" + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '1.21' + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v4 + with: + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file