diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000000000000000000000000000000000..344b379d322e7a59883a723d97eca794e35a0f46 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +permissions: + contents: write + # packages: write + # issues: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: git fetch --force --tags + - uses: actions/setup-go@v3 + with: + go-version: '>=1.19.3' + cache: true + - uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 9695e57c1304849570fd8318095e588c2b2d5718..52ce0260a5a7976bdbd31aabb2cd9d5b0e555b54 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.pdf *.json *.yaml -*.yml \ No newline at end of file +*.yml +!.github/workflows/*.yml