-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (46 loc) · 1.14 KB
/
ci.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
name: CI
on:
push:
branches:
- main
tags:
- "v*"
pull_request:
branches:
- "**"
jobs:
build:
name: Build binary
runs-on:
- self-hosted
- bundle
env:
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
steps:
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Checkout repo
uses: actions/checkout@v2
with:
clean: false
submodules: "recursive"
- name: Create tarball
run: script/build
- name: Upload tarball to workflow run if main branch
uses: actions/upload-artifact@v4
with:
name: copilot.tar.gz
path: dist/copilot.tar.gz
- uses: softprops/action-gh-release@v1
name: Upload binaries to release if release tag
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with:
draft: true
files: dist/*
overwrite: true
body: ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}