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:
|
2024-10-05 04:16:47 -07:00
|
|
|
runs-on: macos-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 👋
|
2024-10-23 18:02:58 -07:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
2021-12-19 02:28:46 -08:00
|
|
|
- name: Install Go 🗳
|
|
|
|
uses: ./.github/workflows/composite/bootstrap-go
|
|
|
|
- name: Run GoReleaser 🚀
|
2024-11-07 16:40:57 -08:00
|
|
|
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf
|
2021-10-06 12:43:18 -07:00
|
|
|
with:
|
|
|
|
distribution: goreleaser
|
2024-11-04 05:22:07 -08:00
|
|
|
version: v2.3.2
|
2023-12-16 11:55:39 -08:00
|
|
|
args: build --clean --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
|
2024-10-09 17:46:23 -07:00
|
|
|
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
|
2022-12-16 11:47:46 -08:00
|
|
|
with:
|
|
|
|
name: builds
|
|
|
|
retention-days: 1
|
|
|
|
path: |
|
|
|
|
src/dist
|