From 35758eba02df51d42d0fb875095f1ba015a0e4b9 Mon Sep 17 00:00:00 2001 From: Wesley Bos Date: Mon, 9 Sep 2024 16:08:24 +0200 Subject: [PATCH] feat(ci): initial setup --- .github/workflows/release.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3208d0d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: goreleaser + +on: + push: + branch: + - feat/ci + tags: + - 'v*' + +permissions: + contents: write + # packages: write + # issues: write + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup just + uses: extractions/setup-just@v2 + - name: Fetch bar-repo + run: just init + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: stable + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + # 'latest', 'nightly', or a semver + version: '~> v2' + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}