Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #34 from dabumana/developer
Browse files Browse the repository at this point in the history
v.0.2.5a
  • Loading branch information
dabumana committed Jul 14, 2023
2 parents 18fdfc3 + a2b2bbe commit c50a115
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Expand Up @@ -2,7 +2,9 @@ name: Build

on:
push:
branches: ["main"]
branches:
- main
- developer
pull_request:
branches: ["main"]

Expand All @@ -17,17 +19,16 @@ jobs:

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false

- name: Version
id: semantic
uses: codacy/[email protected]
- uses: go-semantic-release/action@v1
with:
release-branch: master
dev-branch: developer
prefix: v.
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Dependencies
run: sudo apt-get install libcurl4-openssl-dev

- name: Build
run: make build APP=caos VERSION=${{ steps.semantic.outputs.version }}
run: make build APP=caos
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@ src/export*
src/training*
src/.env
src/test/.env
.env
7 changes: 7 additions & 0 deletions src/.releaserc
@@ -0,0 +1,7 @@
branches:
- name: "main"

plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/github"
9 changes: 7 additions & 2 deletions src/makefile
Expand Up @@ -3,7 +3,12 @@ VERSION=v.0.0.0
PKG_LIST=$(go list ./... | grep -v /vendor/ | tr '\n' ' ')

build:
go build -o ./bin/${APP}-${VERSION}
mkdir bin
mkdir bin/caos
cp .env ./bin/caos
cp -r template ./bin/caos
go build -o ./bin/caos/${APP}


clean:
go clean
Expand All @@ -28,7 +33,7 @@ env:
openssl x509 -in localCA.crt -out localCA.pem -outform PEM

run:
./bin/${APP}-${VERSION}
./bin/caos/${APP}

test:
go test ./...
Expand Down

0 comments on commit c50a115

Please sign in to comment.