on: pull_request: paths-ignore: - 'README.md' - 'CONTRIBUTING.md' - 'COPYING' - 'website/**' - '.github/*.md' - '.github/FUNDING.yml' name: Build Code jobs: build: runs-on: ubuntu-latest defaults: run: shell: pwsh steps: - name: Checkout code 👋 uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - name: Install Go 🗳 uses: ./.github/workflows/composite/bootstrap-go - name: Run GoReleaser 🚀 uses: goreleaser/goreleaser-action@3fa32b8bb5620a2c1afe798654bbad59f9da4906 with: distribution: goreleaser version: latest args: build --rm-dist --snapshot --skip-post-hooks --skip-before workdir: src - name: Archive production artifacts uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce with: name: builds retention-days: 1 path: | src/dist