includes:
  - from_file:
      path: ./.goreleaser.common.yml

nightly:
  # name_template will override .Version for nightly builds:
  # https://goreleaser.com/customization/nightlies/#how-it-works
  name_template: "{{ .FullCommit }}"

archives:
  - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
    files:
      - LICENSE
    format_overrides:
      - goos: windows
        format: zip

blobs:
  - provider: s3
    region: "{{ .Env.AWS_REGION }}"
    bucket: "{{ .Env.AWS_BUCKET }}"
    folder: "dagger/main/{{ .Version }}"
