2021-10-06 12:43:18 -07:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'README.md'
|
|
|
|
- 'CONTRIBUTING.md'
|
|
|
|
- 'COPYING'
|
2022-05-12 22:54:59 -07:00
|
|
|
- 'website/**'
|
2021-10-06 12:43:18 -07:00
|
|
|
- '.github/*.md'
|
|
|
|
- '.github/FUNDING.yml'
|
|
|
|
|
|
|
|
name: Build Code
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-16 10:59:45 -08:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: pwsh
|
2021-10-06 12:43:18 -07:00
|
|
|
steps:
|
2021-12-19 02:28:46 -08:00
|
|
|
- name: Checkout code 👋
|
2023-08-24 17:58:08 -07:00
|
|
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
|
2021-12-19 02:28:46 -08:00
|
|
|
- name: Install Go 🗳
|
|
|
|
uses: ./.github/workflows/composite/bootstrap-go
|
|
|
|
- name: Run GoReleaser 🚀
|
2023-08-09 17:54:36 -07:00
|
|
|
uses: goreleaser/goreleaser-action@3fa32b8bb5620a2c1afe798654bbad59f9da4906
|
2021-10-06 12:43:18 -07:00
|
|
|
with:
|
|
|
|
distribution: goreleaser
|
|
|
|
version: latest
|
2022-08-26 12:51:47 -07:00
|
|
|
args: build --rm-dist --snapshot --skip-post-hooks --skip-before
|
2021-10-06 12:43:18 -07:00
|
|
|
workdir: src
|
2022-12-16 11:47:46 -08:00
|
|
|
- name: Archive production artifacts
|
2023-01-08 17:24:06 -08:00
|
|
|
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
|
2022-12-16 11:47:46 -08:00
|
|
|
with:
|
|
|
|
name: builds
|
|
|
|
retention-days: 1
|
|
|
|
path: |
|
|
|
|
src/dist
|