-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.07 KB
/
build-project.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
name: build-project
run-name: Building the project
on:
push:
branches:
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- '!main' # excludes main
jobs:
build-project:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.19.x'
- run: cd ${{ github.workspace }}
- run: ls -la
- name: Install dependencies
run: go get ./...
- name: Build
run: go build -v ./cmd/...
# - name: Test with the Go CLI
# run: go test
- uses: actions/upload-artifact@v2
with:
name: go-example
path: ./go-example
- uses: "marvinpinto/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: latest
files: |
LICENSE
go-example