Skip to content

Commit

Permalink
CI: build & upload Go project
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf authored Oct 27, 2023
1 parent 86aee3b commit ef42a92
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Go

on:
push:
branches: [ "v2" ]
pull_request:
branches: [ "v2" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Build
run: go build -v ./.

- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: "catApi"
# A file, directory or wildcard pattern that describes what to upload
path: "catApi"

0 comments on commit ef42a92

Please sign in to comment.