-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitrise.yml
67 lines (62 loc) · 1.71 KB
/
bitrise.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
format_version: "13"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
step_bundles:
setup:
steps:
- activate-ssh-key@4: { }
- git-clone@8: { }
setup-go:
steps:
- script:
title: Setup pinned Go version
inputs:
- content: asdf install
workflows:
test:
triggers:
pull_request:
- source_branch: "*"
steps:
- bundle::setup: { }
- bundle::setup-go: { }
- git::https://github.com/bitrise-steplib/steps-check.git:
inputs:
- skip_step_yml_validation: "yes"
trigger-release:
triggers:
tag:
- name: "*.*.*"
steps:
- trigger-bitrise-workflow@0:
inputs:
- api_token: $CONTROL_CENTER_TRIGGER_KEY
- workflow_id: binary-tool-release
- exported_environment_variable_names: GIT_REPOSITORY_URL
- app_slug: $CONTROL_CENTER_APP_SLUG
create-release:
description: Creates Linux and Darwin binaries, then publishes a GitHub release
envs:
- GITHUB_TOKEN: $GIT_BOT_USER_ACCESS_TOKEN # Goreleaser expects this env var
steps:
- bundle::setup-go: {}
- script:
title: Goreleaser (create binaries + publish to GH)
deps:
brew:
- name: goreleaser
inputs:
- content: goreleaser release
test-binary-build:
description: Tests the release build process by creating a snapshot release (without publishing)
steps:
- bundle::setup: { }
- script:
title: Goreleaser (create snapshot binaries)
deps:
brew:
- name: goreleaser
inputs:
- content: |
#!/usr/bin/env bash
set -ex
goreleaser release --snapshot --clean