diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6ae675b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: Release Docsim + +on: + workflow_dispatch: + push: + tags: + - "*" + +jobs: + build: + name: GoReleaser build + runs-on: ubuntu-latest + + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Go 1.19 + uses: actions/setup-go@v4 + with: + go-version: 1.19 + id: go + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v4 + with: + version: latest + workdir: lib + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.RELEASER_GITHUB_TOKEN }}